기술 MFC CString to string
CString cStr = L"String";
CT2CA convertedString(cStr);
std::string str = std::string(convertedString);
또는
CString cStr = L"String";
std::string str = std::string(CT2CA(cStr));
반대로 stirng to CString
string stdstr = "string";
CStirng cStr = stdstr.c_str();
참고
- https://bbicw.tistory.com/37
- https://rubber-tree.tistory.com/21
댓글남기기