Xman
驱动大牛
驱动大牛
  • 注册日期2001-08-24
  • 最后登录2011-10-07
  • 粉丝0
  • 关注0
  • 积分343分
  • 威望127点
  • 贡献值0点
  • 好评度34点
  • 原创分0分
  • 专家分0分
阅读:2907回复:4

ParseCommandLine问题???

楼主#
更多 发布于:2005-02-02 12:23
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);

// Dispatch commands specified on the command line
if (!ProcessShellCommand(cmdInfo))
       //运行到这里,出现"建立空文档失败"的对话框!
return FALSE; :P :P :P
[img]http://www.driverdevelop.com/forum/upload/Xman/2004-04-05_2004324183110706.jpg[/img]
zmwk
驱动中牛
驱动中牛
  • 注册日期2001-05-15
  • 最后登录2009-04-05
  • 粉丝0
  • 关注0
  • 积分59分
  • 威望51点
  • 贡献值0点
  • 好评度2点
  • 原创分0分
  • 专家分0分
沙发#
发布于: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))

之前加入上述代码。
A strong man can save himself. A great man can save another.
snowStart
驱动老牛
驱动老牛
  • 注册日期2004-04-06
  • 最后登录2011-06-02
  • 粉丝0
  • 关注0
  • 积分95分
  • 威望19点
  • 贡献值177点
  • 好评度1点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2005-02-02 20:45
if(cmdInfo.m_nShellCommand == CCommandLineInfo::FileNew)
{
   cmdInfo.m_nShellCommand = CCommandLineInfo::FileNothing;
}

在// Dispatch commands specified on the command line
if (!ProcessShellCommand(cmdInfo))

之前加入上述代码。


这是加flash吗?
学习,关注,交流中... [email=fengyu@163.com]Email:snowstarth@163.com[/email] [url]http://bbs.zndev.com/?a=snowStart[/url]
Xman
驱动大牛
驱动大牛
  • 注册日期2001-08-24
  • 最后登录2011-10-07
  • 粉丝0
  • 关注0
  • 积分343分
  • 威望127点
  • 贡献值0点
  • 好评度34点
  • 原创分0分
  • 专家分0分
地板#
发布于: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();
[img]http://www.driverdevelop.com/forum/upload/Xman/2004-04-05_2004324183110706.jpg[/img]
xuzheng318
驱动牛犊
驱动牛犊
  • 注册日期2005-01-24
  • 最后登录2005-03-04
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
地下室#
发布于:2005-02-04 15:30
学习!关注!
游客

返回顶部