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