1、CString转换为const char*
CString strData;
const size_t strsize1 = (strData1.GetLength()+1)*2; // 宽字符的长度;
char * pstr1= new char[strsize1]; //分配空间;
size_t sz1 = 0;
wcstombs_s(&sz1, pstr1, strsize1, strData1, _TRUNCATE);