Tuesday, November 09, 2010

[Bug]C2509: ExitInstance

  It was a strange thing when I use AppWizard to generate a SD application with Office 2007 style in VS 2010. The code was generated in an inherited CWinappEx class. However, this method was not declared in header file. It generated a C2509 error when building the project.
  At this moment, I manually added the declaration in the header file for removing this error message. Maybe VC team will fix it in the later service pack.