>>>>> 高分求教!!MFC向导生成单文档框架工程中的问题,关键字ProcessShellCommand
工程是用MFC向导生成单文档框架工程,在InitInstance()里面会有这么几行代码
// Parse command line for standard shell commands, DDE, file open
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);
// Dispatch commands specified on the command line
if (!ProcessShellCommand(cmdInfo))
return FALSE;
在if (!ProcessShellCommand(cmdInfo))上设断点
发现居然用F11不能跟进去,用反汇编显示单步跟踪也只能跟入一堆汇编代码
于是新建了一个MFC向导生成单文档框架工程进行测试,发现是可以F11跟踪进入ProcessShellCommand(cmdInfo)的,检查了两个工程的Setting,完全是一样的,并刻意将这两个工程的ProcessShellCommand代码之前的语句改成完全一样的,旧的那个工程还是不能跟踪进入ProcessShellCommand(cmdInfo)。
一个贴子只能给200分,只要解决,分数不是问题!