摘要: Unicode下 string 转 CString[cpp]view plaincopystringmsg="";CStringcs;cs.Format(_T("%s"),CStringW(msg.c_str()));//CStringW是为了防止乱码Unicode下CString转换为char *[cpp]view plaincopy//方法一:使用API:WideCharToMultiByte进行转换CStringstr=_T("D:\\校内项目\\QQ.bmp");//注意:以下n和len的值大小不同,n是按字符计算的,len是 阅读全文
posted @ 2014-04-11 09:42 Zucc_zt 阅读(666) 评论(0) 推荐(0) 编辑