2021年9月17日
摘要: 如果路径中含有中文,open的时候会返回14,需要将全路径名转换为UTF8编码 #include <codecvt> //将GBK编码的字符串转换为UTF8string toUtf(const string &gb2312){#ifdef _MSC_VER const static locale l 阅读全文
posted @ 2021-09-17 15:08 M1911 阅读(637) 评论(0) 推荐(0) 编辑
摘要: CString-->string: CString cstrA;string strB = CT2A(cstrA.GetBuffer()); string转CString: string strA; CString cstrB(strA.c_str()); 阅读全文
posted @ 2021-09-17 14:51 M1911 阅读(103) 评论(0) 推荐(0) 编辑