描述:
我安装了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、是不是版本太低?