错误 C1083:无法打开包含文件:'stdafx.h',但它应该打开吗?

Error C1083: Cannot open include file: 'stdafx.h', but it should?

#include <stdafx.h>

我检查过error C1083: Cannot open include file: 'stdafx.h': No such file or directory in VS 2005 但它仍然没有帮助。我正在使用预编译 headers。通常我从为自己保存的模板开始。里面有我喜欢的所有 headers,并且在过去,include 一直有效。我也会附上代码,但它根本不允许我在任何项目上访问它。甚至是一个简单的你好世界。

尝试#include "stdafx.h"

这将改变编译器查找 header 的方式 - 即,它将检查本地目录。

Here is the SO question for further reference.