How to get the command line argu
2020-07-03 本文已影响0人
锦囊喵
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).