开发者

Visual Studio crashes when trying to add handler to control on MFC form

I have a problem with Visual Studio 2010. I'm trying to add a button and associate an event to it. But when I double-click or right-click -> Add Event Handler开发者_StackOverflow中文版, my IDE stop responding and it gives me an error:

Microsoft Visual Studio has encounter a problem and needs to restart.

I've tried all the ways that I know to add an event to a control. I even changed the control to radio button or a label, and I when I try to set any event to any control, my VS crashes.

Is this an known problem? Am I doing something wrong?

My project is a Dialog-based MFC application.

I've tried to add an event to a different project (a test project that I downloaded from the web) and it works.


I have the same problem . When trying to add an event handler to a checkbox, VS crashes and eventually restarts. The same project and specific dialog resource did not have this problem some days ago.

I did not have any 2008 version installed as OP did.

I think something got corrupted, possibly in the .rc file, but I am not sure how to fix it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜