从CString中获取字符串:
有时候我们需要将CString 对象中的字符串提取出来用于文件读写.
vs2010 Unicode 工程
char desc[100] = "0"; WideCharToMultiByte(CP_ACP, 0, str, -1, desc, 100, NULL, NULL);
从CString中获取字符串:
有时候我们需要将CString 对象中的字符串提取出来用于文件读写.
vs2010 Unicode 工程
char desc[100] = "0"; WideCharToMultiByte(CP_ACP, 0, str, -1, desc, 100, NULL, NULL);
转载于:https://www.cnblogs.com/wang-xiang/p/4905064.html