Hi all, Sort of a dumb question, but I can't seem to type in the right combination of keywords to bring up an answer on Google. I want to know what my program's filename is. I.E. you run THEGAME.EXE, I know that somewhere, there's a function call that will tell me "THEGAME.EXE" Anyone know what it is? Thanks!
In ansi C/C++ it would be argv[0] For win32, look up DWORD GetModuleFileName( HMODULE hModule, // handle to module to find filename for LPTSTR lpFilename, // pointer to buffer for module path DWORD nSize // size of buffer, in characters );