阅读:2935回复:4
ParseCommandLine问题???
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo); // Dispatch commands specified on the command line if (!ProcessShellCommand(cmdInfo)) //运行到这里,出现"建立空文档失败"的对话框! return FALSE; :P :P :P |
|
|
沙发#
发布于:2005-02-02 18:10
if(cmdInfo.m_nShellCommand == CCommandLineInfo::FileNew)
{ cmdInfo.m_nShellCommand = CCommandLineInfo::FileNothing; } 在// Dispatch commands specified on the command line if (!ProcessShellCommand(cmdInfo)) 之前加入上述代码。 |
|
|
板凳#
发布于:2005-02-02 20:45
if(cmdInfo.m_nShellCommand == CCommandLineInfo::FileNew) 这是加flash吗? |
|
|
地板#
发布于:2005-02-03 08:48
这个问题的难度超出了我的预期!
// Parse command line for standard shell commands, DDE, file open CCommandLineInfo cmdInfo; ParseCommandLine(cmdInfo); if(cmdInfo.m_nShellCommand == CCommandLineInfo::FileNew) { cmdInfo.m_nShellCommand = CCommandLineInfo::FileNothing; }//加入代码 // Dispatch commands specified on the command line if (!ProcessShellCommand(cmdInfo)) return FALSE; //加入代码后通过!!! // The one and only window has been initialized, so show and update it. m_pMainWnd->ShowWindow(SW_SHOW); //在这里失败----ASSERT(::IsWindow(m_hWnd)); m_pMainWnd->UpdateWindow(); |
|
|
地下室#
发布于:2005-02-04 15:30
学习!关注!
|
|