WINCORE.CPP中的错误...
E:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC\WINCORE.CPP(38) : error C2491: 'CWnd::wndTop' : definition of dllimport static data member not allowed
E:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC\WINCORE.CPP(46) : error C2440: 'initializing' : cannot convert from 'int' to 'const char []'
        There are no conversions to array types, although there are conversions to references or pointers to arrays
E:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC\WINCORE.CPP(47) : error C2065: 'AFX_WNDOLECONTROL' : undeclared identifier
E:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC\WINCORE.CPP(278) : error C2065: 'AfxCriticalNewHandler' : undeclared identifier
E:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC\WINCORE.CPP(281) : error C2514: 'CHandleMap' : class has no constructorsE:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC\WINCORE.CPP(555) : error C2228: left of '.GetDataNA' must have class/struct/union type
E:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC\WINCORE.CPP(556) : error C2227: left of '->m_pfnSubclassDlgEx' must point to class/struct/union
E:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC\WINCORE.CPP(557) : error C2065: 'WM_QUERY3DCONTROLS' : undeclared identifier
E:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC\WINCORE.CPP(564) : error C2227: left of '->m_pfnSubclassDlgEx' must point to class/struct/union
E:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC\WINCORE.CPP(730) : error C2065: 'AfxDeferRegisterClass' : undeclared identifier
E:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC\WINCORE.CPP(730) : error C2065: 'AFX_WND_REG' : undeclared identifier
E:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC\WINCORE.CPP(814) : error C2027: use of undefined type 'COleDropTarget'
        e:\program files\microsoft visual studio\vc98\mfc\include\afxwin.h(1871) : see declaration of 'COleDropTarget'
E:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC\WINCORE.CPP(814) : error C2227: left of '->Revoke' must point to class/struct/union
E:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC\WINCORE.CPP(832) : error C2065: 'AFX_OLDTOOLINFO' : undeclared identifier
E:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC\WINCORE.CPP(889) : error C2660: 'afxMapHWND' : function does not take 0 parameters
E:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC\WINCORE.CPP(894) : error C2027: use of undefined type 'CHandleMap'
        e:\program files\microsoft visual studio\vc98\mfc\include\afxstat_.h(109) : see declaration of 'CHandleMap'
E:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC\WINCORE.CPP(894) : error C2227: left of '->LookupPermanent' must point to class/struct/union
E:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC\WINCORE.CPP(894) : error C2027: use of undefined type 'CHandleMap'
Error executing cl.exe.
Creating browse info file...
BSCMAKE: error BK1506 : cannot open file '.\Debug\WINCORE.SBR': No such file or directory
Error executing bscmake.exe.VirtualAssembly.exe - 103 error(s), 6 warning(s)搞的我快疯掉了,103个错误.....
贴子过长,删了一部分,有谁遇到过这种问题吗?文件太多,不想重建拷进去!

解决方案 »

  1.   

    clear and rebuild all,
    检查下是否错误的改动了什么项目设置啥的。尤其是dll工
    程的属性设置。还有就是文件的嵌套包涵。
      

  2.   

    Rebuild all还是错的,变成119个错误了
      

  3.   

    找到原因了,运行WINCORE.CPP中出现了错误!修改后只有把debug中的文件全删掉才能重新调试,同时我以为是stdafx.cpp的错误,删掉它后重新加入一个stdafx.cpp运行的!所以出现了诸多问题!解决办法两步:
    1、删掉debug中的所有文件
    2、对每个保护stdafx.h的cpp文件设置改为不用预编译头文件!这一步具体参见:http://blog.csdn.net/magictong/archive/2011/05/05/6398135.aspx
    不过还是谢谢大家!
    我的这个帖子的问题还没解决希望大家多多指教啊!
    http://topic.csdn.net/u/20110615/09/bc2c7f86-5067-4836-8021-5d4cdb32de5e.html