vc6编译wtl例子出错

来源:互联网 发布:java移植游戏破解合集 编辑:程序博客网 时间:2024/06/05 02:16
 

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
.......

解决:

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

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