How to get the command line arguments in MFC applications?
Yes, see CWinApp:ParseCommandLine. Also take a look at the CCommandLineInfo class.
Use GetCommandLine(), which returns the name of the file being executed, followed by the arguments.
The application member m_lpCmdLine (used like yourApp.m_lpCmdLine
) contains only the arguments.
There is also CWinApp::ParseCommandLine() that you may find useful.
Also try the ATL COM wizard to create a non-MFC dialog application (chose the .exe option, not .dll).