我安装了WTL7.1,编译它自带的例子MTPad,提示编译出错,为什么?

zcq111 2004-04-02 09:34:28
我安装了WTL7.1,编译它自带的例子MTPad,提示编译有14个错误。
c:\wtl70\include\atlframe.h(412) : error C2146: syntax error : missing ';' before identifier 'lpnm'
c:\wtl70\include\atlframe.h(1176) : see reference to class template instantiation 'WTL::CFrameWindowImplBase<TBase,TWinTraits>' being compiled
c:\wtl70\include\atlframe.h(412) : error C2501: 'LPNMREBARCHEVRON' : missing storage-class or type specifiers
c:\wtl70\include\atlframe.h(1176) : see reference to class template instantiation 'WTL::CFrameWindowImplBase<TBase,TWinTraits>' being compiled
c:\wtl70\include\atlframe.h(412) : error C2501: 'lpnm' : missing storage-class or type specifiers
c:\wtl70\include\atlframe.h(1176) : see reference to class template instantiation 'WTL::CFrameWindowImplBase<TBase,TWinTraits>' being compiled
c:\wtl70\include\atlframe.h(412) : error C2146: syntax error : missing ';' before identifier 'lpnm'
c:\wtl70\include\atlframe.h(1312) : see reference to class template instantiation 'WTL::CFrameWindowImplBase<class ATL::CWindow,class ATL::CWinTraits<114229248,262400> >' being compiled
c:\wtl70\include\atlframe.h(412) : error C2501: 'LPNMREBARCHEVRON' : missing storage-class or type specifiers
c:\wtl70\include\atlframe.h(1312) : see reference to class template instantiation 'WTL::CFrameWindowImplBase<class ATL::CWindow,class ATL::CWinTraits<114229248,262400> >' being compiled
c:\wtl70\include\atlframe.h(412) : error C2501: 'lpnm' : missing storage-class or type specifiers
c:\wtl70\include\atlframe.h(1312) : see reference to class template instantiation 'WTL::CFrameWindowImplBase<class ATL::CWindow,class ATL::CWinTraits<114229248,262400> >' being compiled
c:\wtl70\include\atldlgs.h(1347) : error C2504: 'IPrintDialogCallback' : base class undefined
c:\wtl70\include\atldlgs.h(1564) : see reference to class template instantiation 'WTL::CPrintDialogExImpl<T>' being compiled
c:\wtl70\include\atldlgs.h(1351) : error C2146: syntax error : missing ';' before identifier 'm_pdex'
c:\wtl70\include\atldlgs.h(1564) : see reference to class template instantiation 'WTL::CPrintDialogExImpl<T>' being compiled
c:\wtl70\include\atldlgs.h(1351) : error C2501: 'PRINTDLGEX' : missing storage-class or type specifiers
c:\wtl70\include\atldlgs.h(1564) : see reference to class template instantiation 'WTL::CPrintDialogExImpl<T>' being compiled
c:\wtl70\include\atldlgs.h(1351) : error C2501: 'm_pdex' : missing storage-class or type specifiers
c:\wtl70\include\atldlgs.h(1564) : see reference to class template instantiation 'WTL::CPrintDialogExImpl<T>' being compiled
c:\wtl70\include\atldlgs.h(1347) : error C2504: 'IPrintDialogCallback' : base class undefined
c:\wtl70\include\atldlgs.h(1567) : see reference to class template instantiation 'WTL::CPrintDialogExImpl<class WTL::CPrintDialogEx>' being compiled
c:\wtl70\include\atldlgs.h(1351) : error C2146: syntax error : missing ';' before identifier 'm_pdex'
c:\wtl70\include\atldlgs.h(1567) : see reference to class template instantiation 'WTL::CPrintDialogExImpl<class WTL::CPrintDialogEx>' being compiled
c:\wtl70\include\atldlgs.h(1351) : error C2501: 'PRINTDLGEX' : missing storage-class or type specifiers
c:\wtl70\include\atldlgs.h(1567) : see reference to class template instantiation 'WTL::CPrintDialogExImpl<class WTL::CPrintDialogEx>' being compiled
c:\wtl70\include\atldlgs.h(1351) : error C2501: 'm_pdex' : missing storage-class or type specifiers
c:\wtl70\include\atldlgs.h(1567) : see reference to class template instantiation 'WTL::CPrintDialogExImpl<class WTL::CPrintDialogEx>' being compiled
Error executing cl.exe.

MTPad.exe - 14 error(s), 0 warning(s)
但编译BmpView、GuidGen、MDIDocVw都正常,以它的AppWiz60产生的Project也能编译通过,我用的是vc++6.0,用vc++7.0试过也一样。
另外我已经把wtl的include 包括近来了
1、这是他自带的例子,是不是它那里设置不对?该如何设置?
2、是不是版本太低?
...全文
112 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
zcq111 2004-04-02
  • 打赏
  • 举报
回复
高手们,出手吧。。。

3,248

社区成员

发帖
与我相关
我的任务
社区描述
ATL,Active Template Library活动(动态)模板库,是一种微软程序库,支持利用C++语言编写ASP代码以及其它ActiveX程序。
社区管理员
  • ATL/ActiveX/COM社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧