天天看點

雜記 05/07/2011-3 正式學習WTL

1. 官網

http://wtl.sourceforge.net/

2. 一些資源

http://wtl.sourceforge.net/links.htm

http://www.yesky.com/zhuanti/302/1927802.shtml

An article about developing Ping using WTL

3. readme.html from WTL80

WTL classes are mostly templated and use minimal instance data and inline functions. They were not designed as a framework, so they do not force a particular application model, and can accommodate any. The classes do not use hooks or thread local storage, so they have no restrictions that those techniques impose. They also have no inter-dependencies and can be freely mixed with straight SDK code.

Q: VC++6可以使用WTL Wizard嗎?

A: wtl70裡有wizard60,可使用

4. Playing sample code from within VC++6

Q: How to do it ?

有若幹編譯錯:

MainFrm.Cpp

e:/software-repository/vc/wtl80_7161_final/include/atlframe.h(405) : error C2146: syntax error : missing ';' before identifier 'lpnm'

        e:/software-repository/vc/wtl80_7161_final/include/atlframe.h(1155) : see reference to class template instantiation 'WTL::CFrameWindowImplBase<TBase,TWinTraits>' being compiled

e:/software-repository/vc/wtl80_7161_final/include/atlframe.h(405) : error C2501: 'LPNMREBARCHEVRON' : missing storage-class or type specifiers

        e:/software-repository/vc/wtl80_7161_final/include/atlframe.h(1155) : see reference to class template instantiation 'WTL::CFrameWindowImplBase<TBase,TWinTraits>' being compiled

e:/software-repository/vc/wtl80_7161_final/include/atlframe.h(405) : error C2501: 'lpnm' : missing storage-class or type specifiers

        e:/software-repository/v

5. 使用wtl70的wizard,成功!

* 11:44,目前狀态:

使用wtl70的wizard做出的程式可以執行,但其它所有版本的samples直接打開*.dsw都無法編譯,現象如下:

Compiling...

Alpha.cpp

d:/study/wtl/wtl70/include/atlframe.h(274) : error C2146: syntax error : missing ';' before identifier 'lpnm'

        d:/study/wtl/wtl70/include/atlframe.h(905) : see reference to class template instantiation 'WTL::CFrameWindowImplBase<TBase,TWinTraits>' being compiled

d:/study/wtl/wtl70/include/atlframe.h(274) : error C2501: 'LPNMREBARCHEVRON' : missing storage-class or type specifiers

        d:/study/wtl/wtl70/include/atlframe.h(905) : see reference to class template instantiation 'WTL::CFrameWindowImplBase<TBase,TWinTraits>' being compiled

d:/study/wtl/wtl70/include/atlframe.h(274) : error C2501: 'lpnm' : missing storage-class or type specifiers

Q:在資源編輯器中修改DIALOG的ID,對程式沒有影響嗎?

繼續閱讀