CString使用GetBuffer转换成std::string类型失败 缘由

cstr.GetBuffer(cstr.GetLength()); 编码 可是编译时会出现以下可能错误: error C2440: “初始化”: 没法从“wchar_t *”转换为“std::basic_string<_Elem,_Traits,_Ax>” spa 或者字符串 本身明明有#include <string>头文件,仍是编译报错没法识别string类型string   解决方法:it
相关文章
相关标签/搜索