在APP的InitInstance()中,把这一句换成后面的:
替换前:
if (!ProcessShellCommand(cmdInfo))
return FALSE;
替换后:
if(cmdInfo.m_nShellCommand == CCommandLineInfo::FileNew)
{
pDocTemplate1->OpenDocumentFile(NULL);
}
else
{
// Dispatch commands specified on the command line
if (!ProcessShellCommand(cmdInfo))
return FALSE;
}