100分请高手帮我。fatal error RC1015:cannot open include file 'afxres.h'
为什么我每打开一个VC程序,总会出现下面的错误提示:
fatal error RC1015:cannot open include file 'afxres.h'.
当试图打开ResourceView的时候也会出现上面的错误提示。
哪位大侠能帮我一下。。
问题点数:100、回复次数:5Top
1 楼bohut(●伯虎● )回复于 2004-09-02 12:38:10 得分 40
资源编译器致命错误 RC1015无法打开包含文件“filename”
给定包含文件不存在,无法打开或者没有找到。
确保环境设置有效并且已指定此文件的正确路径。确保资源编译器有足够的文件句柄可用。如果文件位于网络驱动器上,请确保您有打开此文件的权限。
在“配置属性”->“资源”->“常规”属性页中可配置“附加包含目录”,即使包含文件存在于该“附加包含目录”所指出的目录中,也可能发生 RC1015;请指定包含文件的完整路径。
Top
2 楼yzx0023(无聊客)回复于 2004-09-02 12:46:20 得分 5
随便去哪里找个"afxres.h"拷贝到资源目录下算了Top
3 楼wonhao(沧海一鼠)回复于 2004-09-02 13:06:47 得分 30
Resource Compiler Fatal Error RC1015
cannot open include file 'filename'
The given include file either did not exist, could not be opened, or was not found.
Make sure that the environment settings are valid and that the correct path for the file is specified. Ensure that sufficient file handles are available to the Resource Compiler. If the file is on a network drive, make sure that you have permissions to open the file.
Top
4 楼BLsoft(網龍ζ龍活)(Cyber-Security of [MVP])回复于 2004-09-02 13:13:54 得分 10
找个afxres.h复制到你的工程中,或设置包涵目录Top
5 楼zhaogaojian(米柑年成-WWW.VSFAN.NET)回复于 2004-09-02 13:21:21 得分 15
afxres.h是VC自带的,如果没对工程属性设置。应该不会出问题
可能是你把资源改坏了,找个比较近的备份,将.res拷贝过来Top




