摘要: 1 wchar_t* c2w(const char *str)2 {3 int length = strlen(str)+1;4 wchar_t *t = (wchar_t*)malloc(sizeof(wchar_t)*length);5 memset(t,0,len... 阅读全文
posted @ 2014-12-06 15:41 qyindelong 阅读(570) 评论(0) 推荐(0)
摘要: 1、char[] 转换为 LPWSTR解决方案: 思路一: 使用CA2W字符转换宏(ATL and MFC String Conversion Macros)。 根据MSDN描述,这个宏用于将ANSI转换为Wide Character(UNICODE) 代码如下: ... 阅读全文
posted @ 2014-12-06 15:38 qyindelong 阅读(11967) 评论(0) 推荐(0)