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
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()
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.
thanks
Or SetCurrentDirectory() / GetCurrentDirectory()
"Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
Friedrich Nietzsche
"I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
George Best
"If you are going through hell....keep going."
Winston Churchill
No, when you open application by draging document to it then atleast in my Windows 98 the current directory is c:/windows.Or SetCurrentDirectory() / GetCurrentDirectory()
Last edited by macdonald; 04-25-2002 at 12:31 AM.