10-03-2007 01:20 PM
10-03-2007 04:20 PM
The name of the executable is the first parameter of main (): argv[0]. You can retrieve it at program start and store in a global variable for future use during program life.
The name retrieved is the executable one in case of a final application (YourApp.exe) and the debug executable in case you are running in the IDE (usually YourApp_dbg.exe)
10-03-2007 05:56 PM
10-03-2007 11:44 PM