首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

MFC突然冒出这个异常,求高手解决

2013-09-28 
MFC突然冒出这个错误,求高手解决啊--------------------Configuration: Draw - Win32 Debug--------------

MFC突然冒出这个错误,求高手解决啊

--------------------Configuration: Draw - Win32 Debug--------------------
Compiling...
APPCORE.CPP
C:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC\APPCORE.CPP(36) : warning C4273: 'protected: static struct AFX_MSGMAP const CWinApp::messageMap' : inconsistent dll linkage.  dllexport assumed.
C:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC\APPCORE.CPP(36) : error C2491: 'CWinApp::messageMap' : definition of dllimport static data member not allowed
C:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC\APPCORE.CPP(66) : error C2065: 'AfxDeleteObject' : undeclared identifier
C:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC\APPCORE.CPP(156) : error C2514: 'CRecentFileList' : class has no constructors
        c:\program files\microsoft visual studio\vc98\mfc\include\afxwin.h(3930) : see declaration of 'CRecentFileList'
C:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC\APPCORE.CPP(157) : error C2027: use of undefined type 'CRecentFileList'
        c:\program files\microsoft visual studio\vc98\mfc\include\afxwin.h(3930) : see declaration of 'CRecentFileList'
C:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC\APPCORE.CPP(157) : error C2227: left of '->ReadList' must point to class/struct/union
C:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC\APPCORE.CPP(199) : error C2065: 'USES_CONVERSION' : undeclared identifier
C:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC\APPCORE.CPP(200) : error C2065: 'T2CA' : undeclared identifier
C:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC\APPCORE.CPP(298) : warning C4150: deletion of pointer to incomplete type 'CRecentFileList'; no destructor called
        c:\program files\microsoft visual studio\vc98\mfc\include\afxwin.h(3930) : see declaration of 'CRecentFileList'
C:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC\APPCORE.CPP(317) : error C2065: 'AfxGlobalFree' : undeclared identifier
C:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC\APPCORE.CPP(355) : error C2027: use of undefined type 'CRecentFileList'
        c:\program files\microsoft visual studio\vc98\mfc\include\afxwin.h(3930) : see declaration of 'CRecentFileList'
C:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC\APPCORE.CPP(355) : error C2227: left of '->WriteList' must point to class/struct/union
C:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC\APPCORE.CPP(430) : error C2065: 'WM_KICKIDLE' : undeclared identifier
C:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC\APPCORE.CPP(511) : error C2065: 'OpenPrinter' : undeclared identifier
C:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC\APPCORE.CPP(519) : error C2065: 'DocumentProperties' : undeclared identifier
C:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC\APPCORE.CPP(532) : error C2065: 'ClosePrinter' : undeclared identifier
C:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC\APPCORE.CPP(574) : error C2027: use of undefined type 'CRecentFileList'
        c:\program files\microsoft visual studio\vc98\mfc\include\afxwin.h(3930) : see declaration of 'CRecentFileList'
C:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC\APPCORE.CPP(574) : error C2227: left of '->GetSize' must point to class/struct/union
C:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC\APPCORE.CPP(577) : error C2676: binary '[' : 'class CRecentFileList' does not define this operator or a conversion to a type acceptable to the predefined operator
C:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC\APPCORE.CPP(577) : error C2228: left of '.GetLength' must have class/struct/union type
C:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC\APPCORE.CPP(578) : error C2676: binary '[' : 'class CRecentFileList' does not define this operator or a conversion to a type acceptable to the predefined operator
C:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC\APPCORE.CPP(606) : warning C4273: 'public: static struct CRuntimeClass const CWinApp::classCWinApp' : inconsistent dll linkage.  dllexport assumed.
C:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC\APPCORE.CPP(606) : error C2491: 'CWinApp::classCWinApp' : definition of dllimport static data member not allowed


C:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC\APPCORE.CPP(609) : warning C4073: initializers put in library initialization area
执行 cl.exe 时出错.

Draw.exe - 1 error(s), 0 warning(s)

MFC? ?dll?linkage
[解决办法]
这句的意思是说: 里面定义了一个静态的成员变量,在动态连接库里面这么做,是不允许的。
'AfxDeleteObject',这个玩意没有定义(编译器不知道你定义在那里)。
多发点信息上来呀
[解决办法]
是不是工程类型错了?

热点排行