VS2010 the resolution of "catastrophic failure" when using the MFC Class Wizard

Source: Internet
Author: User

These two days want to give their own a VS2010 project through the MFC Class Wizard to add some control variables, but found that prompted an error dialog box scare me to say "catastrophic error" and then VS2010 collapsed, or nothing to say directly quit.

Beginning to look at some of the online posts said to install patches or something, but their own other two items can also, should be the software is not a problem, and the program can run normally. There are also posts that clear vs generated those. ncb,ipch and other intermediate files, so various try, try to clear the half-day, also still no solution.

It was later found that the same project only had its own main interface dialog class using the Class Wizard and the other classes were normal. After careful analysis of the problematic dialog class source file, finally locked in the dialog box of the resource ID, found itself in the resource editor to change the ID of the dialog box, However, seemingly modified but not in time to update the dialog box class header file (perhaps the program suddenly quit before modifying the save and did not have time to update) so that they are not the same, resulting in the use of the Class Wizard, the Class Wizard from the header file read and parse, loading open a dialog resource that does not actually exist " Catastrophic error. "

It is normal to use the Class Wizard tool to make the two changes consistent.

VS2010 the resolution of "catastrophic failure" when using the MFC Class Wizard

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.