天天看点

杂记 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,对程序没有影响吗?

继续阅读