1. CString 转 const char*
CString aCString = "abc";
const char* astr = (const char*)aCString;
2.CString 转 string
CString nameCString = "我是好人";
string nameString = nameCString..GetBuffer(0);
1. CString 转 const char*
CString aCString = "abc";
const char* astr = (const char*)aCString;
2.CString 转 string
CString nameCString = "我是好人";
string nameString = nameCString..GetBuffer(0);