WTL工程文件包含模板

转自:http://hi.baidu.com/icexile/item/9bb8fd4f949cc0afdf2a9ffe

 1 //应该在工程头文件中包含任何WTL头文件前定义以下两行:
 2 #define _WTL_NO_CSTRING
 3 #define _WTL_NO_WTYPES
 4 
 5 //典型声明顺序
 6 #include <atlbase.h>
 7 #include <atlstr.h>
 8 #include <atltypes.h>
 9 #include <atlapp.h>
10 extern CAppModule _Module;
11 #include <atlwin.h>
12 #include <atlcrack.h>
13 #include <atlsplit.h>
14 #include <atlframe.h>
15 #include <atlgdi.h>
16 #include <atlctrls.h>
17 #include <atlctrlx.h>
18 #include <atlmisc.h>
19 #include <......>

文章中说:ATL和ATL提供了都提供了CString和CRect等类型的定义,但是ATL有官方文档,所以提前定义两个宏来阻止引入WTL类型。

原文地址:https://www.cnblogs.com/aishangxue/p/3615174.html