.BOOL CAaApp::InitInstance()
{
// Parse command line for standard shell commands, DDE, file open
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);
// Dispatch commands specified on the command line
//if (!ProcessShellCommand(cmdInfo))
// return FALSE;
...
}
1、GetCommandLine() 获取输入的所有信息,包括程序所在路径及参数
2、AfxGetApp()->m_lpCmdLine 只包含参数