473,403 Members | 2,284 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Why kill App.Path?

I've found that other thing that returns the assembly
executable but I don't need the file tacked on to the
path, just need the path. I don't want to always have to
write code to trim off the filename either...

Also, none of my friends want to try my new programs out
because they don't want to put the .NET framework on
their pc. I was reading that you guys killed the need for
runtime files with this version, so what exactly is
the .NET framework download that everyone needs to use my
programs?

Finally I am concerned about speed. I was led to believe
that .NET was so much faster then VB6. Yet, the install
took almost eternity, the programs I write in .NET load
slower as well as run operations significantly slower.
I'm sure the probelm is on my end but not sure where. My
only guess at this point is that I need to be running
Windows Server 2003 and so does everyone who wants to use
my programs and actually benefit from them. Could that be
the problem?
Jul 21 '05 #1
3 2195
System.IO.Path has some methods to help you out. I also think there are
other ways of finding the codebase (try AppDomain.Current.BaseDirectory).

Well, if they don't want the .NET Framework on their PCs, then they'll be
stuck with using Windows XP or earlier for the rest of their lives. Pretty
much everything needs some kind of runtime (even older VB programs), so no,
"runtime requirements" were not killed.

Which specific operations are you seeing that are slower? In general, well
written .NET code can perform very well (sometimes faster than an app
written in C++ due to the memory management).

Thanks,
-mike
MVP
"Graham" <sy******@hotmail.com> wrote in message
news:20*****************************@phx.gbl...
I've found that other thing that returns the assembly
executable but I don't need the file tacked on to the
path, just need the path. I don't want to always have to
write code to trim off the filename either...

Also, none of my friends want to try my new programs out
because they don't want to put the .NET framework on
their pc. I was reading that you guys killed the need for
runtime files with this version, so what exactly is
the .NET framework download that everyone needs to use my
programs?

Finally I am concerned about speed. I was led to believe
that .NET was so much faster then VB6. Yet, the install
took almost eternity, the programs I write in .NET load
slower as well as run operations significantly slower.
I'm sure the probelm is on my end but not sure where. My
only guess at this point is that I need to be running
Windows Server 2003 and so does everyone who wants to use
my programs and actually benefit from them. Could that be
the problem?

Jul 21 '05 #2
Your suggestion was exactly what I was looking for. You
are also probably right about the efficiency of my
applications being due to lack of good coding. So much
for me to learn and so little money. I am glad that I can
come here and get results.

Thank you,
Graham
-----Original Message-----
System.IO.Path has some methods to help you out. I also think there areother ways of finding the codebase (try AppDomain.Current.BaseDirectory).
Well, if they don't want the .NET Framework on their PCs, then they'll bestuck with using Windows XP or earlier for the rest of their lives. Prettymuch everything needs some kind of runtime (even older VB programs), so no,"runtime requirements" were not killed.

Which specific operations are you seeing that are slower? In general, wellwritten .NET code can perform very well (sometimes faster than an appwritten in C++ due to the memory management).

Thanks,
-mike
MVP
"Graham" <sy******@hotmail.com> wrote in message
news:20*****************************@phx.gbl...
I've found that other thing that returns the assembly
executable but I don't need the file tacked on to the
path, just need the path. I don't want to always have to write code to trim off the filename either...

Also, none of my friends want to try my new programs out because they don't want to put the .NET framework on
their pc. I was reading that you guys killed the need for runtime files with this version, so what exactly is
the .NET framework download that everyone needs to use my programs?

Finally I am concerned about speed. I was led to believe that .NET was so much faster then VB6. Yet, the install
took almost eternity, the programs I write in .NET load
slower as well as run operations significantly slower.
I'm sure the probelm is on my end but not sure where. My only guess at this point is that I need to be running
Windows Server 2003 and so does everyone who wants to use my programs and actually benefit from them. Could that be the problem?

.

Jul 21 '05 #3
On MSDN there are various performance documents for .NET. My biggest
suggestion for you if you are using VB.NET is to drop all VB language
functions. Use the .NET specific stuff instead.

For instance don't use the VB string functions like Mid and so on. Use the
String.XXX functions and the Math.Whatever functions.

For casting, use DirectCast instead of CType whenever possible.

And of course, make sure Option Explicit and Option Strict are on. These
make VB much, much better.

-mike
MVP

"Graham" <iv***@n0sp4m.sbcglobal.net> wrote in message
news:0b****************************@phx.gbl...
Your suggestion was exactly what I was looking for. You
are also probably right about the efficiency of my
applications being due to lack of good coding. So much
for me to learn and so little money. I am glad that I can
come here and get results.

Thank you,
Graham
-----Original Message-----
System.IO.Path has some methods to help you out. I also

think there are
other ways of finding the codebase (try

AppDomain.Current.BaseDirectory).

Well, if they don't want the .NET Framework on their

PCs, then they'll be
stuck with using Windows XP or earlier for the rest of

their lives. Pretty
much everything needs some kind of runtime (even older

VB programs), so no,
"runtime requirements" were not killed.

Which specific operations are you seeing that are

slower? In general, well
written .NET code can perform very well (sometimes

faster than an app
written in C++ due to the memory management).

Thanks,
-mike
MVP
"Graham" <sy******@hotmail.com> wrote in message
news:20*****************************@phx.gbl...
I've found that other thing that returns the assembly
executable but I don't need the file tacked on to the
path, just need the path. I don't want to always have to write code to trim off the filename either...

Also, none of my friends want to try my new programs out because they don't want to put the .NET framework on
their pc. I was reading that you guys killed the need for runtime files with this version, so what exactly is
the .NET framework download that everyone needs to use my programs?

Finally I am concerned about speed. I was led to believe that .NET was so much faster then VB6. Yet, the install
took almost eternity, the programs I write in .NET load
slower as well as run operations significantly slower.
I'm sure the probelm is on my end but not sure where. My only guess at this point is that I need to be running
Windows Server 2003 and so does everyone who wants to use my programs and actually benefit from them. Could that be the problem?

.

Jul 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: David Mitchell | last post by:
I use a function to read all of the files from a couple of directories (and subfolders) and update a table(tblfiles) with the fullpath and file name, the filesize and the date the file was created....
1
by: dixie | last post by:
I am trying to delete the temporary files that MS Word leaves behind sometimes when it fails to clean up properly. Files like ~$lename.dot. I have used the Kill command, but find that this...
8
by: Peter | last post by:
I'm trying to write a proceedure that will delete a file completely off a hardrive. I just don't want to kill the file. I want to rewrite over the data with 1's and 0's 8 times. Anyone have an...
5
by: Dino Buljubasic | last post by:
My application can allow a user to open a file for viewing by fetching file data from database, creating the file in a temp directory and starting appropriate process (i.e. Adobe or any other...
10
by: I. Myself | last post by:
Suppose we spawn a child process with Popen. I'm thinking of an executable file, like a compiled C program. Suppose it is supposed to run for one minute, but it just keeps going and going. Does...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.