多文档程序,开始不生成新文档

来源:互联网 发布:博弈树搜索算法 编辑:程序博客网 时间:2024/05/22 13:48

方法一:

在App的InitInstance中,在

CCommandLineInfo cmdInfo;

ParseCommandIine(cmdInfo);

两句之后添加一句

cmdInfo.m_nShellCommand = CCommandLineInfo::FileNothing;

方法二:

注释下面内容:

CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);

// Dispatch commands specified on the command line
if (!ProcessShellCommand(cmdInfo))
   return FALSE;

原创粉丝点击