WTL里面有好几个头文件,顺序如下
#include <atlbase.h> #include <atlapp.h> extern CAppModule _Module; #include <atlcom.h> #include <atlhost.h> #include <atlwin.h> #include <atlcrack.h> #include <atlctl.h> #include <atlctrls.h> #include <atlctrlx.h> #include <atlctrlw.h> #include <atlscrl.h> #include <atlsplit.h> #include <atlframe.h> #include <atldlgs.h> #include <atlmisc.h> #include <atlddx.h>
1.ATL的部分最靠前;
2.基础空间 atlctl*.h 要在 atlframe.h atldlgs.h 前面,否则有些会编译报错。比如 CRichEditFontDialog
参见:https://groups.yahoo.com/neo/groups/wtl/conversations/topics/460