1、介紹
WTL 是 Windows Template Library 的縮寫,由微軟的ATL(Active Template Library) 小組開發,主要是基於 ATL 對Win32API 的封裝。從 2.0 後,功能逐步完善,成爲了一個完整的支持窗口的框架(windows framework)。
2、使用
a、執行WTL91_5270_Beta\AppWiz\Setup.js安裝wtl到vs
b、新建wtl的dialog項目test_wtl,報錯:
b.1: fatal error RC1015: cannot open include file 'atlres.h'
錯誤
1 error RC1015: cannot open include file 'atlres.h'.
D:\visual studio
2013\Projects\test_wtl\test_wtl\test_wtl.rc
10 1 test_wtl
解決方法:
打開工程屬性 -> 配置屬性
-> 資源 -> 所有選項 -> 附加包含目錄: D:\wtl\WTL91_5270_Beta\Include
b.2: 錯誤 1 error C1083: 無法打開包括文件: “atlapp.h”: No such file or directory D:\visual studio 2013\projects\test_wtl\test_wtl\stdafx.h 15 1 test_wtl
解決方法:
打開工程屬性 -> 配置屬性 -> C/C++ -> 常規 -> 附加包含目錄:D:\wtl\WTL91_5270_Beta\Include
c、開發wtl程序