cstring 转 string

若是是unicode工程 USES_CONVERSION; CString str1; std::string str2(W2A(str1)); 若是是多字节工程 CString str1; std::string str2(str1.Getbuffer()); str1.ReleaseBuffer(); spa   error C2065: “_lpw”: 未声明的标识 error C2065:
相关文章
相关标签/搜索