VS2008多字符和Uincode模式下的通用字符转换
CString cstr = "1234";
string str = “5555”;
char *pCh = new char[50];
strcpy(pCh,”world!”);
1、CString→ char*
USES_CONVERSION;
pCh = T2A(cstr.GetBuffer());
cstr.ReleaseBuffer();
2、char*
原创
2013-05-02 12:49:02 ·
610 阅读 ·
0 评论