杂记 05/07/2011-3 正式学习WTL

本文详细介绍了如何使用WTL70进行应用程序开发,包括使用WTLWizard、解决编译错误、混合使用WTL与SDK代码等核心内容。通过实践示例,展示了如何将WTL70与Visual Studio 6结合,以及遇到问题的解决方案。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值