虽然提示这样的错误,但是编译程序是成功的。在低版本的VS2005/VS2008开发而在高版本VS2010、VS2012、VS2013等打开时会遇到这样的问题。


解决方法:
      项目属性 => 配置属性 => C/C++ => 常规 => 附加包含目录中增加:$(ProjectDir)

见下图

IntelliSense: cannot open source file "stdafx.h"[IntelliSense: 无法打开源文件 "stdafx.h"]IntelliSense: cannot open source file "stdafx.h"[IntelliSense: 无法打开源文件 "stdafx.h"]

相关文章:

  • 2021-07-23
  • 2021-10-15
  • 2021-09-22
  • 2021-08-31
  • 2022-12-23
  • 2021-11-15
猜你喜欢
  • 2021-12-11
  • 2022-12-23
  • 2022-01-03
  • 2021-05-18
  • 2021-10-03
相关资源
相似解决方案