When you come across this compiling error in Visual Studio, you could re-save the source file with “Advanced Save Options” setting. To address this issue, switch to “File“->”Advanced Save Options“, Select “Window (CR CF)” from the “Line endings” item, select on kind of Windows Encoding method from the “Encoding” item. Just as the following diagram. Then re-save them. And please make sure that those source files are open before you do with such setting. Otherwise, they will stay there the same.
From: http://www.cnblogs.com/open-coder/archive/2012/08/24/2653541.html
当在Visual Studio中遇到编译错误时,可通过高级保存选项设置来解决。具体操作包括选择文件>高级保存选项,设置行结束方式为窗口(CRLF),并选择Windows编码方式。
1750

被折叠的 条评论
为什么被折叠?



