现在的位置: 首页 > 综合 > 正文

怎样去掉VC中的空文档

2014年11月10日 ⁄ 综合 ⁄ 共 344字 ⁄ 字号 评论关闭
在App::InitInstance()中加入红色代码即可。
	// Parse command line for standard shell commands, DDE, file open
	CCommandLineInfo cmdInfo;
	ParseCommandLine(cmdInfo);

	cmdInfo.m_nShellCommand = CCommandLineInfo::FileNothing;

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

只是在源代码的基础上增加了

cmdInfo.m_nShellCommand = CCommandLineInfo::FileNothing;

抱歉!评论已关闭.