我在工程找加入comn_i.c文件 结果提示错误 fatal error C1010: unexpected end of file while looking for precompiled header directive
我把comn_i.c放进StdAfx.h中提示fatal error C1083: Cannot open include file: comn_i.c: No such file or directory
怎么办呀!
我把comn_i.c放进StdAfx.h中提示fatal error C1083: Cannot open include file: comn_i.c: No such file or directory
怎么办呀!
解决方案 »
- VS2010界面显示风格
- 管道字节传输模式,但如果发送数据大于接收数据则出错.管道异常关闭.
- 怎么让单文档程序运行起来缩小在开始菜单条的右角上?
- 已用ADO和DataGrid联上了,可以显示数据了。不知如何能在DataGrid上直接编缉记录数据?
- 1000分大题,希望您能帮我解决,关键词:汇编+引导程序+MBR+PCI+LBA
- 请问vc++设置绘图背景颜色应怎样,AutoCAD中画圆时有一条从圆心到圆周的橡皮条线,画圆的过程中可以看到,但画完圆就没有了,这一功能在v
- 在建立html文件时,如何使用VC的资源位图,而不是位图的文件连结
- DataGrid控件--问题?
- 关于动态拆分窗口,如何在各个视图显示不同内容??
- 调试错误
- WndProc(TMessage &Message)的名称是?
- 实现拖拽并有缩略图。在2000正常,XP一片黑。
#include "stdafx.h"
rebuild all
FAQ中就有两条
http://community.csdn.net/Expert/FAQ/FAQ_Index.asp?id=192721
http://community.csdn.net/Expert/FAQ/FAQ_Index.asp?id=89
comn_i.c放进StdAfx.h中??
应该是StdAfx.h放进comn_i.c中
编译提示:
fatal error C1853: 'Debug/ClientDll.pch' is not a precompiled header file created with this compiler
怎么办?
http://community.csdn.net/Expert/topic/3358/3358388.xml?temp=.7596399
http://community.csdn.net/Expert/topic/3358/3358797.xml?temp=.5074427
rebuild all应该就可以了
不要把.c文件加到工程中.
只要#include "comn_i.c"就行了.
#ifdef __cplusplus
extern "C"
{
#endif结尾处加上
#ifdef __cplusplus
}
#endif
在使用接口的文件前面#include "XXX_i.c",可以找到iid和clsid
或者,把iid和clsid的定义从XXX_i.c中拿出来,放到需要使用的地方
[C/C++]->PreCompiled Headers 选择“no useing precompiled headers ”