兰花红香妃兰图片:vc++,Cannot open include file: 'stdafx.h'怎么办?

来源:百度文库 编辑:查人人中国名人网 时间:2024/05/04 12:34:30
c:\documents and settings\asdf\桌面\mywork\mmmview.cpp(4) : fatal error C1083: Cannot open include file: 'stdafx.h': No such file or directory
是什么意思,怎么文件一移植到别的机器上就有这个错误,怎么解决?高手帮忙。

你试着这样
#include<stdafx.h>
而不要这样
#include"stdafx.h"

<XXX.h>
是指头文件在系统目录内,而不是当前目录。

查查VC++安装的缺省路径

好像stdafx.h应该和mmmview.cpp在同一目录下,您的
mywork目录下有stdafx.h这个文件吗?

前面都不对的.
我昨天刚做过,有同样的错误报告.
这是因为编译中有错误,仔细查看自己的代码,会发现错误的.