首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > VC/MFC >

wtl编译有关问题

2012-01-10 
wtl编译问题?我安装了wtl70,并包含了include。可是编译是还是报如下错误。c:\wtl70\include\atlframe.h(274)

wtl编译问题?
我安装了wtl70,并包含了include。
可是编译是还是报如下错误。

c:\wtl70\include\atlframe.h(274)   :   error   C2146:   syntax   error   :   missing   '; '   before   identifier   'lpnm '
                c:\wtl70\include\atlframe.h(905)   :   see   reference   to   class   template   instantiation   'WTL::CFrameWindowImplBase <TBase,TWinTraits> '   being   compiled
c:\wtl70\include\atlframe.h(274)   :   error   C2501:   'LPNMREBARCHEVRON '   :   missing   storage-class   or   type   specifiers

[解决办法]
是不是版本号太靠前了
win_ver
[解决办法]
我用vc6,WTL8beta,PSDK2003,一切OK。
你应该是程序写错了。
检查你程序里的这句话
DECLARE_FRAME_WND_SUPERCLASS
[解决办法]
WTL用了很多vc6时代没有的界面函数,比如rebar control,这些都需要sdk,而vc6里面有很多头文件是和sdk头文件是重叠的,你应该把sdk的头和库文件排到前面。其次排WTL。总之,新的要排前面。
[解决办法]
SDK 2003 可以注册下 自动导入路径的

热点排行