The source code is different from the original version. 我遇到的情况,竟然是这种情况: d:/worksapce/dvdcopy-dll/dvdcopy/dvdfileset.cpp
: 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 中文VC8的程序员可能会常常看见这个warning: warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失. 这个警告没有什么坏影响,但会影响心情:) 所以还是要治理一下: 哪个文件出现这个警告错误,打开它, 用VS2005的查找替换功能,打开允许正则表达式选项,选择当前窗口,查找替换 /n 为 /n , 然后,这个世界就清净了。 原因: 查找的 /n 是跨平台的回车,替换的 /n 却是当前代码页的回车了 1)编译错误C2220和警告C4819
错误描述(在vs2005中,特别是查看别人的代码) ./crt_dbg1.c : error C2220: warning treated as error - no 'object' file generated ./crt_dbg1.c : 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 修改方法:只需要对次文件 Ctrl+A ,Ctrl+X, 然后再 Ctrl+V就搞定。(使文件变为unicode) |
|