码迷,mamicode.com
首页 > 其他好文 > 详细

vs UNICODE 零散的笔记

时间:2014-10-14 23:46:39      阅读:181      评论:0      收藏:0      [点我收藏+]

标签:ar   sp   on   ef   bs   app   har   nbsp   string   

string--->CString

#ifdef UNICODE
#define Tstring wstring
#else
#define Tstring string
#endif

可以这样转换
CString str=CString(string.c_str())

 

const char*----->LPCWSTR

const char *str;
CString temp = str;
LPCWSTR app = (LPCWSTR)(temp.AllocSysString());

 

vs UNICODE 零散的笔记

标签:ar   sp   on   ef   bs   app   har   nbsp   string   

原文地址:http://www.cnblogs.com/blogofwu/p/4025275.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!