C++ CString转char* char*转CString
char* 转CString很简单
代码:
char* strBuf="Hello world";
CString cstrBuf=strBuf;
CString转char*
代码
CString cstrBuf=L"Hello world";
USES_CONVERSION;
char * strbuf = T2A(cstrBuf);
char* 转CString很简单
代码:
char* strBuf="Hello world";
CString cstrBuf=strBuf;
CString转char*
代码
CString cstrBuf=L"Hello world";
USES_CONVERSION;
char * strbuf = T2A(cstrBuf);