在Windows Mobile和Wince(Windows Embedded CE)下Win32项目加入ATL支持

Windows Mobile下Win32项目加入ATL支持,需要增加以下代码:

#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS    // some CString constructors will be explicit
#include <atlbase.h>
#include <atlstr.h>
#include <atlcoll.h>

其中_ATL_CSTRING_EXPLICIT_CONSTRUCTORS为支持CString的定义。

posted @ 2009-09-07 09:41  Jake Lin  阅读(1557)  评论(2编辑  收藏  举报