一、string转CString
string str = "hello world"; CString cstr(str.c_str());
二、CString转string
CString theCStr = L"Hello C++"; std::string STDStr(CW2A(theCStr.GetString()));
(未完续)
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/210198.html原文链接:https://javaforall.net
