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或以上编译即可
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或以上编译即可
相关文章推荐
- vc6编译wtl例子出错
- winpcap示例程序采用VC6编译时出错error C2054: expected '(' to follow '_W64'
- VC6编译出错假死处理办法
- vc6编译出错c2557的原因
- winpcap网络编程在vc6下编译出错的原因
- 编译WpdPack提供的例子是出错!!
- winpcap网络编程在vc6下编译出错的原因
- WTL-编译出错01--CVTRES : fatal error CVT1100: 资源重复。类型: MANIFEST,名称: 1,语言: 0x0409
- 编译unix环境高级编程第一个例子出错解决
- 在MAC OS X 10.9下编译CUDA 5.5例子程序出错解决方案
- detours2.1 VC6中编译方法及源代码及使用例子及编译好的BIN
- QT4的FindDialog例子在VC6中编译时提示链接错误的一种直观的解决办法(包含过程思路)
- 现在为了让程序兼容vista,我们需要给程序加上一个manifest文件,可是有时候vc6它就会弹出Resource Compiler Error RC2170 的错误,可能是vc6一个bug,我个人对vc6还是很喜欢的,不过经常会有编译死掉或出错的问题,
- 编译unix环境高级编程第一个例子出错解决
- 在CentOS下编译最新CUDA5.5例子代码出错解决办法
- 运行SimpleDict例子编译出错,解决办法如下。
- WTL的例子编译出现error C2039: “PostMessage”: 不是“`global namespace'”的成员的错误
- vc6工程改用vs2010工程打开编译出错:static_cast”: 无法从“void (__thiscall CMainFrame::* )(void)”转换为...
- 用VS2008编译Direct3D例子程序出错解决办法
- 由vc6转到vc.net编译出错的解决方法