ATL中使用CString

在stdafx.h 中的

#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS    // 某些 CString 构造函数将是显式的

下添加一下代码即可:

#define _WTL_NO_CSTRING
#include <atlstr.h>
#define _WTL_NO_WTYPES
#include <atltypes.h>
#include <atlfile.h>
#include <comsvcs.h>

posted @ 2013-03-30 16:04  javawebsoa  Views(220)  Comments(0Edit  收藏  举报