您的位置:首页 > Web前端

vc6编译wtl例子出错

2010-02-28 16:53 281 查看
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或以上编译即可
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
相关文章推荐