今天天气不错,园子大丰收~~:

摘要: 刚封装了一个C的方法,碰到最多的就是char 和Wchar的转化问题. 找了些资料:1.头文件中要定义宏; #define UNICODE #define _UNICODE 2.char转换成wchar const char *pFilePathName = "c:\\aa.dll "; int nLen = strlen(pFilePathName) + 1; int nwLen = MultiByteToWideChar(CP_ACP, 0, pFilePathName, nLen, NULL, 0);TCHAR lpszFile[256]; MultiByteToWi 阅读全文
posted @ 2011-11-02 23:07 Jimson.Ma 阅读(9444) 评论(0) 推荐(0) 编辑

Email: 20045912@163.com MSN: 20045912@163.com