vc6编译wtl71 的例子出错

来源:互联网 发布:linux find当前目录 编辑:程序博客网 时间:2024/06/05 05:13


vc6编译wtl71 的例子出错,如下
c:/wtl71/include/atlframe.h(274) : error C2501: 'LPNMREBARCHEVRON' : missing storage-class or type specifiers
        c:/wtl71/include/atlframe.h(905) : see reference to class template instantiation 'WTL::CFrameWindowImplBase <TBase,TWinTraits>' being compiled
c:/wtl71/include/atlframe.h(274) : error C2501: 'lpnm' : missing storage-class or type specifiers
        c:/wtl71/include/atlframe.h(905) : see reference to class template instantiation 'WTL::CFrameWindowImplBase <TBase,TWinTraits>' being compiled
.......

解决:

在stdatl.h里 注释掉下面三行,不然 vc6不能编译

/* #define WINVER  0x0500
#define _WIN32_WINNT 0x0500
#define _WIN32_IE 0x0501
*/

 

或者使用vs2003或以上编译即可

0 0
原创粉丝点击