How to find the directory from which the application is loaded?
language: C
In API I found only GetCurrentDirectory, GetWindowsDirectory and GetSystemDirectory. However, function SearchPath knows which is the directory.
Macdonald
Printable View
How to find the directory from which the application is loaded?
language: C
In API I found only GetCurrentDirectory, GetWindowsDirectory and GetSystemDirectory. However, function SearchPath knows which is the directory.
Macdonald
GetModuleFileName()
thanks
Or SetCurrentDirectory() / GetCurrentDirectory()
No, when you open application by draging document to it then atleast in my Windows 98 the current directory is c:/windows.Quote:
Or SetCurrentDirectory() / GetCurrentDirectory()