how to change CString to char *
CString strText = TEXT("AAA");//strText 必须是Unicode编码。
const char* strOut;
char temp[0x100];
CString str = L"hello wordl";
strText += str;
::wsprintfA(temp, "%ls", (LPCTSTR)strText)
原创
2014-10-14 18:51:07 ·
199 阅读 ·
0 评论