1、字符集是多字节
char* str=new char[len];
CString cstr=_T("test");
strcpy(str,cstr);
2、字符集是unicode
<pre name="code" class="cpp">CString unicodestr = _T("Testing");
CStringA charstr(unicodestr);
const char* str=(const char *) charstr;
1、字符集是多字节
char* str=new char[len];
CString cstr=_T("test");
strcpy(str,cstr);
2、字符集是unicode
<pre name="code" class="cpp">CString unicodestr = _T("Testing");
CStringA charstr(unicodestr);
const char* str=(const char *) charstr;