vc中定义类出错

来源:互联网 发布:淘宝客服的工作怎么找 编辑:程序博客网 时间:2024/04/29 13:28

fatal error C1010: 在查找预编译头指令时遇到意外的文件结尾

 方法一:在include头文件的地方加上#include "stdafx.h"。

方法二:打开此项目的“属性页”对话框。单击“C/C++”文件夹。单击“预编译头”属性页。修改“创建/使用预编译头”属性为“不使用预编译头”。

方法一:重新生成.pch文件

error C2653:  CMyClass: 不是类或命名空间名称

可能是将#include "MyClass.h"与#include "stdafx.h"顺应对序写反了. 

 


<script type="text/javascript"><!--google_ad_client = "pub-5925212464529757";google_ad_width = 468;google_ad_height = 60;google_ad_format = "468x60_as";google_ad_type = "image";//2006-12-12: computer.alumni.chinaren.comgoogle_ad_channel = "4878550483";//--></script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>