CString->char*
CString str = _T("1234");
USES_CONVERSION;
char* p = T2A(str.GetBuffer(0));
str.ReleaseBuffer();
char*->CString
char* pData = "1234";
CString strData(pData);//或 CString strData = A2T(pData);
CString->char*
CString str = _T("1234");
USES_CONVERSION;
char* p = T2A(str.GetBuffer(0));
str.ReleaseBuffer();
char*->CString
char* pData = "1234";
CString strData(pData);//或 CString strData = A2T(pData);