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的定义。
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的定义。
转载于:https://www.cnblogs.com/procoder/archive/2009/09/07/Windows-Mobile-Native-ATL.html