Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Application Path

Status
Not open for further replies.

markv105

Programmer
Aug 8, 2002
11
0
0
CA
Hi All:

Does anyone know how to determine the path of your application at runtime. Ie, what directory all your pibbles and stuff is?

Thanks alot,

Mark
 
Hi,

You could use

Code:
FUNCTION	ulong		GetCurrentDirectory (ulong nBufferLength, ref string lpBuffer) Library "KERNEL32.DLL" Alias for "GetCurrentDirectoryA"

However, if the user has used any system browse dialogs since starting your application then the returned value will be the last directory they browsed to. Capture the directory early on in your application initialization.

Cheers.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top