CString 转 String和String转CString

来源:互联网 发布:python多进程共享对象 编辑:程序博客网 时间:2024/05/17 21:58

VS默认是宽字符集,使用以下办法成功解决问题

CString cstr;USES_CONVERSION;String str(W2A(cstr));CString to StringString str;CString cstr(str.c_str());

参考:http://www.itnose.net/detail/6110703.html

0 0