Home > Back-end >  MFC generated in the name of the document of CxxApp was considered as a class, not to overcome!!!!!
MFC generated in the name of the document of CxxApp was considered as a class, not to overcome!!!!!

Time:10-05

Its own file called richmen1, the system automatically generate Crichmen1App at compile time error: error C2653: 'Crichmen1App' : is not a class or the namespace name

 

# include "stdafx. H"
# include "richmen1. H"
# include "richmen1Doc. H"
# include "richmen1View. H"
# include "MainFrm. H"

# ifdef _DEBUG
# define new DEBUG_NEW
# undef THIS_FILE
The static char THIS_FILE []=__FILE__;
# endif

/////////////////////////////////////////////////////////////////////////////
//Crichmen1App

BEGIN_MESSAGE_MAP (Crichmen1App, CWinApp)//error: error C2653!!
//{{AFX_MSG_MAP (CR4App)
ON_COMMAND (ID_APP_ABOUT OnAppAbout)
ON_COMMAND (ID_FILE_NEW CWinApp: : OnFileNew)
ON_COMMAND (ID_FILE_OPEN CWinApp: : OnFileOpen)
//NOTE - the ClassWizard will add and remove the mapping macros here.
//DO NOT EDIT what you see in these blocks of generated code!
//}} AFX_MSG_MAP
//Standard file -based document commands

END_MESSAGE_MAP ()


Ask you a great god is how to return a responsibility, how to solve!
  • Related