Getting the start upp parameters of a MFC Application...
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
How do I retrieve the parameters that are given when the user executes the .exe file? /XTSea
-
How do I retrieve the parameters that are given when the user executes the .exe file? /XTSea
CWinApp::m_lpCmdLine Corresponds to the lpCmdLine parameter passed by Windows to WinMain. Points to a null-terminated string that specifies the command line for the application. Use m_lpCmdLine to access any command-line arguments the user entered when the application was started. m_lpCmdLine is a public variable of type LPSTR. You could use any number of the 'command line option parsers' available eitehr here or at codeguru.com to break up the command line string.