初始化的时候,传值进去string a;CString b;b = a.c_str();这样。
string sou;CString str;str.Format("%s",sou.data());
strcpy(b,a.c_str());