Can anyone help me ? Im a newbie on the Win32 API, i need to get the full PATH+EXE Name to a string and set a opinter to it. What is the correct way of doing that?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Can anyone help me ? Im a newbie on the Win32 API, i need to get the full PATH+EXE Name to a string and set a opinter to it. What is the correct way of doing that?
Hi!
Maybe try this:
...
char szFileName[MAX_PATH];
HINSTANCE hInstance = GetModuleHandle(NULL);
GetModuleFileName(hInstance, szFileName, MAX_PATH);
...
szFileName holds the Path & Filename with extension.
Hope this helps a little..
Bye!