返回列表 回复 发帖

求求我啊!各路大侠!

我的vc6.0无法编译!每次编译时都会出现下列文字
--------------------Configuration: 886 - Win32 Debug--------------------
Compiling resources...
E:\build\MSDev98\MyProjects\886\886.rc(11) : fatal error RC1015: cannot open include file 'afxres.h'.
Error executing rc.exe.

886.exe - 1 error(s), 0 warning(s)
请各位大侠告诉小弟原因及解决方法!小弟定必铭记于心!希望各路大侠出手相助!
#include "afxres.h"语句是在.rc文件中的,而afxres.h文件在VC的安装目录中的.\VC98\MFC\INCLUDE目录中,所以着重查一下Tools菜单中Options对话框中的Directories中的包括文件的路径是否正确,是否在VC的安装路径中,不是的话,改过来,如果这方面没问题,则到其他机器中拷贝afxres.h到相应的目录中
VC的安装目录在哪?
说详细点好吗?谢谢!
你的机器上没装VC?
现在变成
--------------------Configuration: 9982 - Win32 Debug--------------------
Compiling...
Error spawning cl.exe

9982.exe - 1 error(s), 0 warning(s)
肯定是你设置的问题,不行的话,重新安装一下吧

spawning rc.exe

Compiling resources...
Error spawning rc.exe
Creating browse info file...
Error spawning bscmake.exe

NServer.exe - 1 error(s), 0 warning(s)
以前没有这种错误  怎么回事?
返回列表