2012年3月22日

error C2664: “fopen”: 不能将参数 1 从“CString”转换为“const char *”

摘要: 其实还可能出现其它类似的问题,如:error C2664: “fopen”: 不能将参数 1 从“CString”转换为“const char *”error C2039: “strcpy”: 不是“ATL::CStringT<BaseType,StringTraits>”的成员但是程序在VC6下编译得很好,经过研究发现是设置上有所不同。在VC6中,默认使用MBCS编码,即多字节字符;而VC8、VC7默认的是Unicode编码,所以...关于这两种编码有何不同,我引用了网上的一篇文章,由于作者匿名,只能在此感谢:http://pc.nengbang.cn/group_thread/ 阅读全文

posted @ 2012-03-22 16:46 tanqiuwei 阅读(1109) 评论(0) 推荐(0) 编辑

导航