在单步运行的时候把类库里的代码插入到工程中了,从而导致在重新编译后连接时出现如下错我,我该如何做阿?
Compiling...
CMDTARG.CPP
D:\Microsoft Visual Studio\VC98\MFC\SRC\CMDTARG.CPP(51) : error C2027: use of undefined type 'COleDispatchImpl'
        d:\microsoft visual studio\vc98\mfc\include\afxwin.h(1721) : see declaration of 'COleDispatchImpl'
D:\Microsoft Visual Studio\VC98\MFC\SRC\CMDTARG.CPP(51) : error C2227: left of '->Disconnect' must point to class/struct/union
D:\Microsoft Visual Studio\VC98\MFC\SRC\CMDTARG.CPP(69) : error C2079: 'mmf' uses undefined union 'MessageMapFunctions'
D:\Microsoft Visual Studio\VC98\MFC\SRC\CMDTARG.CPP(70) : error C2228: left of '.pfn' must have class/struct/union type
D:\Microsoft Visual Studio\VC98\MFC\SRC\CMDTARG.CPP(76) : error C2027: use of undefined type 'AFX_CMDHANDLERINFO'
        d:\microsoft visual studio\vc98\mfc\include\afxwin.h(1303) : see declaration of 'AFX_CMDHANDLERINFO'
D:\Microsoft Visual Studio\VC98\MFC\SRC\CMDTARG.CPP(76) : error C2227: left of '->pTarget' must point to class/struct/union
D:\Microsoft Visual Studio\VC98\MFC\SRC\CMDTARG.CPP(77) : error C2027: use of undefined type 'AFX_CMDHANDLERINFO'
        d:\microsoft visual studio\vc98\mfc\include\afxwin.h(1303) : see declaration of 'AFX_CMDHANDLERINFO'
D:\Microsoft Visual Studio\VC98\MFC\SRC\CMDTARG.CPP(77) : error C2227: left of '->pmf' must point to class/struct/union
D:\Microsoft Visual Studio\VC98\MFC\SRC\CMDTARG.CPP(77) : error C2228: left of '.pfn' must have class/struct/union type
D:\Microsoft Visual Studio\VC98\MFC\SRC\CMDTARG.CPP(87) : error C2228: left of '.pfn_COMMAND' must have class/struct/union type
D:\Microsoft Visual Studio\VC98\MFC\SRC\CMDTARG.CPP(94) : error C2228: left of '.pfn_bCOMMAND' must have class/struct/union type
D:\Microsoft Visual Studio\VC98\MFC\SRC\CMDTARG.CPP(101) : error C2228: left of '.pfn_COMMAND_RANGE' must have class/struct/union type
D:\Microsoft Visual Studio\VC98\MFC\SRC\CMDTARG.CPP(107) : error C2228: left of '.pfn_COMMAND_EX' must have class/struct/union type
D:\Microsoft Visual Studio\VC98\MFC\SRC\CMDTARG.CPP(112) : error C2065: 'AFX_NOTIFY' : undeclared identifier
D:\Microsoft Visual Studio\VC98\MFC\SRC\CMDTARG.CPP(112) : error C2065: 'pNotify' : undeclared identifier
D:\Microsoft Visual Studio\VC98\MFC\SRC\CMDTARG.CPP(112) : error C2059: syntax error : ')'
D:\Microsoft Visual Studio\VC98\MFC\SRC\CMDTARG.CPP(114) : error C2227: left of '->pResult' must point to class/struct/union
D:\Microsoft Visual Studio\VC98\MFC\SRC\CMDTARG.CPP(115) : error C2227: left of '->pNMHDR' must point to class/struct/union
D:\Microsoft Visual Studio\VC98\MFC\SRC\CMDTARG.CPP(116) : error C2228: left of '.pfn_NOTIFY' must have class/struct/union type
D:\Microsoft Visual Studio\VC98\MFC\SRC\CMDTARG.CPP(116) : error C2227: left of '->pNMHDR' must point to class/struct/union
D:\Microsoft Visual Studio\VC98\MFC\SRC\CMDTARG.CPP(116) : error C2227: left of '->pResult' must point to class/struct/union
D:\Microsoft Visual Studio\VC98\MFC\SRC\CMDTARG.CPP(121) : error C2059: syntax error : ')'
。。D:\Microsoft Visual Studio\VC98\MFC\SRC\CMDTARG.CPP(551) : error C2491: 'CCmdTarget::connectionMap' : definition of dllimport static data member not allowed
D:\Microsoft Visual Studio\VC98\MFC\SRC\CMDTARG.CPP(590) : warning C4273: 'protected: static struct AFX_OLECMDMAP const  CCmdTarget::commandMap' : inconsistent dll linkage.  dllexport assumed.
D:\Microsoft Visual Studio\VC98\MFC\SRC\CMDTARG.CPP(590) : error C2491: 'CCmdTarget::commandMap' : definition of dllimport static data member not allowed
D:\Microsoft Visual Studio\VC98\MFC\SRC\CMDTARG.CPP(701) : error C2065: 'afxData' : undeclared identifier
D:\Microsoft Visual Studio\VC98\MFC\SRC\CMDTARG.CPP(701) : error C2228: left of '.hbmMenuDot' must have class/struct/union type
D:\Microsoft Visual Studio\VC98\MFC\SRC\CMDTARG.CPP(704) : error C2228: left of '.hbmMenuDot' must have class/struct/union type
D:\Microsoft Visual Studio\VC98\MFC\SRC\CMDTARG.CPP(706) : error C2228: left of '.hbmMenuDot' must have class/struct/union type
D:\Microsoft Visual Studio\VC98\MFC\SRC\CMDTARG.CPP(732) : error C2065: 'AfxSetWindowText' : undeclared identifier
D:\Microsoft Visual Studio\VC98\MFC\SRC\CMDTARG.CPP(750) : error C2079: 'info' uses undefined struct 'AFX_CMDHANDLERINFO'
D:\Microsoft Visual Studio\VC98\MFC\SRC\CMDTARG.CPP(751) : error C2228: left of '.pTarget' must have class/struct/union type
D:\Microsoft Visual Studio\VC98\MFC\SRC\CMDTARG.CPP(752) : error C2664: 'OnCmdMsg' : cannot convert parameter 4 from 'int *' to 'struct AFX_CMDHANDLERINFO *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
D:\Microsoft Visual Studio\VC98\MFC\SRC\CMDTARG.CPP(778) : error C2228: left of '.hbmMenuDot' must have class/struct/union type
D:\Microsoft Visual Studio\VC98\MFC\SRC\CMDTARG.CPP(809) : error C2228: left of '.hbmMenuDot' must have class/struct/union type
D:\Microsoft Visual Studio\VC98\MFC\SRC\CMDTARG.CPP(811) : error C2228: left of '.hbmMenuDot' must have class/struct/union type
D:\Microsoft Visual Studio\VC98\MFC\SRC\CMDTARG.CPP(815) : error C2228: left of '.hbmMenuDot' must have class/struct/union type
D:\Microsoft Visual Studio\VC98\MFC\SRC\CMDTARG.CPP(859) : warning C4273: 'public: static struct CRuntimeClass const  CCmdTarget::classCCmdTarget' : inconsistent dll linkage.  dllexport assumed.
D:\Microsoft Visual Studio\VC98\MFC\SRC\CMDTARG.CPP(859) : error C2491: 'CCmdTarget::classCCmdTarget' : definition of dllimport static data member not allowed
Error executing cl.exe.SingleClient.exe - 71 error(s), 7 warning(s)