经单步执行,发现在APP的InitInstance()中 CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo); // Dispatch commands specified on the command line
if (!ProcessShellCommand(cmdInfo))
return FALSE;
出错。
应该如何解决啊?
ParseCommandLine(cmdInfo); // Dispatch commands specified on the command line
if (!ProcessShellCommand(cmdInfo))
return FALSE;
出错。
应该如何解决啊?
CSingleDocTemplate* pDocTemplate;
pDocTemplate = new CSingleDocTemplate(
0,
RUNTIME_CLASS(CHhhDoc),
RUNTIME_CLASS(CMainFrame), // main SDI frame window
RUNTIME_CLASS(CHhhView));
AddDocTemplate(pDocTemplate);
部分将资源ID改为0,如上所示。不过你要用release模式编译、连接,应该能工作。