c++ CString与string相互转换
CString转string 例子:CString strMfc = "test";std::string strStr;strStr = strMfc.GetBuffer(0);string转CString 例子:CString strMfc;string strStr = "test";strMfc = strStr.c_str();
·
CString转string 例子:
CString strMfc = "test";
std::string strStr;
strStr = strMfc.GetBuffer(0);
string转CString 例子:
CString strMfc;
string strStr = "test";
strMfc = strStr.c_str();
更多推荐
已为社区贡献9条内容
所有评论(0)