Error/Warning
luckysnoopy521
这个作者很懒,什么都没留下…
展开
-
warning C4819
编译VC++程序的时候出现如下提示警告:warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss因为只是一个warning,不影转载 2013-07-21 08:47:04 · 689 阅读 · 0 评论 -
error C2664: 'DeleteFileW' : cannot convert parameter 1 from 'const char *' to 'LPCWSTR'
问题的原因是字符串ANSI和Unicode编码的区别, VC6与VS2003等默认使用ANSI编码,而VS2005默认采用Unicode.简单的说,ANSI用1个字节表示字符,Unicode用2个字节表示1个字符.若想要你的代码在VS2005中编译通过,3中方法:1.可修改编码选项:项目属性(alt+F7)-->配置属性(configuration properties)-->常规转载 2013-07-28 10:02:04 · 1253 阅读 · 0 评论