从CString中获取字符串

从CString中获取字符串:

有时候我们需要将CString 对象中的字符串提取出来用于文件读写.

vs2010   Unicode 工程

C/C++ code :
char desc[100] = "0";
WideCharToMultiByte(CP_ACP, 0, str, -1, desc, 100, NULL, NULL);

 

posted @ 2015-10-23 16:59  幻想时间  阅读(1398)  评论(0编辑  收藏  举报