if (!ProcessShellCommand(cmdInfo))

解决方案 »

  1.   

    在程序的初始化中的 CCommandLineInfo 中指定的.
      

  2.   

    在它前面加一句就不会有了。
    cmdInfo.m_nShellCommand = CCommandLineInfo::FileNothing;
      

  3.   

    如果这样就不会自动打开一个文档了:
    BOOL C**App::InitInstance() 中:
    ////////////
    CCommandLineInfo cmdInfo;
    ParseCommandLine(cmdInfo);
    cmdInfo.m_nShellCommand =CCommandLineInfo::FileNothing;
    // Dispatch commands specified on the command line
    if (!ProcessShellCommand(cmdInfo))
    return FALSE;
    ////////////