首页 > 其他 > 详细

unicode下char*和CString

时间:2016-12-08 23:22:34      阅读:237      评论:0      收藏:0      [点我收藏+]

1、对话框打印char*

 char* info="";

::MessageBoxA(this->m_hWnd, info, "", MB_OK);

2、CString转char*

int nLen;
char * wsabuf = NULL;
#ifdef _UNICODE
//CString转换成char*
USES_CONVERSION;
wsabuf = W2A(send_txt_str);//send_txt_str为CString消息
#else
#endif

 

unicode下char*和CString

原文:http://www.cnblogs.com/judes/p/6146795.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!