wtl编译有关问题
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 可以注册下 自动导入路径的
我安装了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 可以注册下 自动导入路径的