无法打开包含文件 stdafx.h,该怎么解决

无法打开包含文件 stdafx.h
朋友发来一个项目,一编译就会出现:fatal error C1083: 无法打开包含文件:“stdafx.h”: No such file or directory

不知道是什么原因?

在此请教各位,被折腾了两天了。百度、谷歌没有找到对应的解决方案。



------解决方案--------------------
这样的东西需要折腾吗?
Cannot open filetype file: 'file': message
To fix by checking the following possible causes

File does not exist.

File, subdirectory, or disk is read-only.

No access permission for file or directory.

Not enough file handles. Close some applications and recompile.

The INCLUDE environment variable is set incorrectly.

An #include directive uses double quotation marks around a path specification, which causes the standard directories to be skipped.

You did not specify /clr and your program uses CLR constructs.

You attempted to compile a single file in the project without first compiling stdafx.cpp. Before you can compile a single file in the project, you need to compile stdafx.cpp. In the case of the /analyze (Enterprise Code Analysis) compiler option, you will need to use the same /analyze setting for stdafx.cpp that you use for the .cpp file.

The following sample generates C1083:

// C1083.cpp
// compile with: /c
#include "test.h" // C1083 test.h does not exist
#include "stdio.h" // OK
------解决方案--------------------
如果还是打不开,则你用你的软件新建一个工程,然后查看工程设置 包含文件路径...把这些路径复制到你朋友的项目对应的位置
------解决方案--------------------
stdafx.h 是否存在,存在就加载了。。
------解决方案--------------------
先硬盘搜索下有没有stdafx.h,没有的话,从别的机器上拷一个。
有的话,再看看存放位置是否能被#include语句找到。

------解决方案--------------------
该工程属性 ,不要预编译的~