CString和string的互相转换(转)

CString->std::string 例子:

CString strMfc=“test“;

std::string strStl;

strStl=strMfc.GetBuffer(0);

std::string->CString 例子:

CString strMfc;

std::string strStl=“test“;

strMfc=strStl.c_str();

posted @ 2018-03-07 11:35  逆转反击  阅读(14185)  评论(0编辑  收藏  举报