迁移后CWinApp :: OnFileNew()的错误 [英] bug with CWinApp::OnFileNew() after migration

查看:155
本文介绍了迁移后CWinApp :: OnFileNew()的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我已经使用Visual Studio 2003在C ++/MFC中开发了一个应用程序.我已经将该应用程序迁移到了Visual Studio 2010,但是遇到了一个错误.实际上,当我调用方法CWinApp :: OnFileNew()来运行程序时,将显示一个消息框,其中仅显示遇到不正确的参数".该消息显示几次,大约10次,然后程序继续运行,这当然会使该程序无法使用.似乎无法访问此方法的源代码.在2003年,我从未见过这种事情发生.有人有解决这个问题的想法吗?

对不起,我的英语不好,谢谢,
Pierre

Hello,

I have developed an application in C++/MFC with Visual Studio 2003. I have migrated this application to Visual Studio 2010, but I have encountered a bug. Actually, when running the program when I call the method CWinApp::OnFileNew(), a message box is displayed with just "Encountered an improper argument". This message is displayed few times, about 10 times and the program continue, of course this makes the program unusable. It seems that it''s impossible to access to the source code of this method. With 2003, I have never see this thing happening. Is someone has idea to solve this problem ?

Sorry for my bad english and thanks beforehand,
Pierre

推荐答案

弹出消息框时,转到调试器上的调用堆栈,找出导致消息弹出的原因.那应该为您提供有关该问题的线索.如果没有,请在此处发布代码,我会看看是否能帮助您解决问题.
When the message box pops up, go to your call stack on the debugger and figure out what triggered the message popping up. That should give you a clue as to the problem. If it doesn''t, post the code here and I''ll see if I can help you decipher the problem.


这篇关于迁移后CWinApp :: OnFileNew()的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆