一个工程,编译时报错!
Compiling...
WINOCC.CPP
D:/Microsoft Visual Studio/VC98/MFC/SRC/WINOCC.CPP(416) : error C2027: use of undefined type 'CHandleMap'
d:/microsoft visual studio/vc98/mfc/include/afxstat_.h(109) : see declaration of 'CHandleMap'
D:/Microsoft Visual Studio/VC98/MFC/SRC/WINOCC.CPP(416) : error C2227: left of '->LookupPermanent' must point to class/struct/union
Error executing cl.exe.
费了很多时间,重装系统,在stdafx.h文件中include "afxstat_.h",结果还是不行,把.clw等文件删除,还是不行,后来把FileView里面把WINOCC.CPP文件删除,编译,通过。到现在都不知道怎么回事。只是觉得编译通过了。之前还查了好多网页,MSDN。
本文记录了一次解决Microsoft Visual Studio编译错误的过程,主要问题是关于CHandleMap类型未定义导致的编译失败。作者尝试了多种方法,最终通过从工程中移除WINOCC.CPP文件解决了问题。

535

被折叠的 条评论
为什么被折叠?



