I have been successfully compiling, linking, and executing an MDI application using Microsoft's Visual Studio 2010. Visual Studio (pro edition) is running under Windows XP. However, following an automatic update of afxwin.h by Microsoft, the application builds without error, but fails at runtime. A Windows diagnostic message is displayed (i.e., "File Description has encountered an error. Sorry for the inconvenience").
I would appreciate knowing whether others have experienced this problem. In a debugging session I discovered the point of failure was the line:
CRuntimeClass* pClassThis = GetRuntimeClass() ;
contained within the function, CObject::IsKindOf(const RuntimeClass* pClass) ;
The function "IsKindOf" is contained within the Windows component, objcore.cpp, and is called during execution of the MDI application's InitInstance function.
I am unable to determine whether restoring the previous version of afxwin.h would solve the problem, as I failed to regularly backup Visual Studio support files.
What I have tried:
I have tried executing older versions of the application from backup libraries. They execute without failure. However, if I rebuild these older versions of the application using their source code with which they were built, the same error is encountered.