我的vc++6.0有sp6的补丁..
1)
当创建一个控制台应用程序时,让他自动生成一个hellow world~~这样的例子,会出现一个错误,
-Configuration: 4 - Win32 Debug--------------------
Compiling...
Error spawning cl.exe4.exe - 1 error(s), 0 warning(s)
这种错误,汗...不知道why..2)
当创建一个MFC appWizard.exe程序时,也是让他生成一个单文挡程序,在运行是出现以下错误....Configuration: test - Win32 Debug--------------------
Compiling resources...
F:\MSDev98\MyProjects\test\test.rc(11) : fatal error RC1015: cannot open include file 'afxres.h'.
Error executing rc.exe.test.exe - 1 error(s), 0 warning(s)说不能打开一个资源文件的头文件..而
在bin文件下可以找到这个头文件...
我把这个头文件直接考到我的工程所在的文件夹下..他有会出现以下错误...onfiguration: test - Win32 Debug--------------------
Compiling resources...
F:\MSDev98\MyProjects\test\afxres.h(17) : fatal error RC1015: cannot open include file 'winres.h'.
Error executing rc.exe.test.exe - 1 error(s), 0 warning(s)
我又重新找了几个盘装了n遍,还是那样的....我又想以为是我的系统有问题,但是我的同学的vc也出现同样的问题了。..
那位高手能看看这是为什么啊.......
你们遇到过这样的问题没有..?....................................谢谢.....................................................

解决方案 »

  1.   

    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. 
      

  2.   

    去tools->options->directories去看一下你的设置,一般在includefilse项下面应包括 C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE
    C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE
    C:\Program Files\Microsoft Visual Studio\VC98\ATL\INCLUDE
    这三个mfc的头文件夹
      

  3.   

    回复二楼.........如图.........
    里面包含了3个include文件.......
    ...没错啊 ....
    为什么......
      

  4.   

        还要有lib文件设置
      

  5.   

        还要有lib文件设置