除学SDK编程,我用VC6创建一个WIN32APPLICATION项目,然后输入了一个书上的例子
应该程序没打错,但每次编译都出现以下错误,很困惑,不知哪里出了问题:
fatal error c1010:unexpected end of the file while looking for procompiled header directive
Error executing cl.exe
....
是头文件有什么问题吗?WINDOWS。H我已经添加在项目里了
先谢谢大家了!!!
应该程序没打错,但每次编译都出现以下错误,很困惑,不知哪里出了问题:
fatal error c1010:unexpected end of the file while looking for procompiled header directive
Error executing cl.exe
....
是头文件有什么问题吗?WINDOWS。H我已经添加在项目里了
先谢谢大家了!!!
有如下的解决办法:
1、在每个cpp的头部加上#include "stdafx.h"
2、或者在menu->project->setting->c/c++中的precompile header中,选择不使用precompile header,然后将工程中的 stdafx.h和stdafx.cpp文件删除。