编写一个简单的应用程序,还什么都没添加,运行老是提示
"致命错误 RC1015: 无法打开包含文件 'afxres.h' "
找了很久很久的资料。。。。。终于找到答案,需要添加include file
工具(tools)->选项(options)->目录(derectories)的目录选择include files 在路径中添加
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE
(我的vc装在C:\Program Files\Microsoft Visual Studio,所以加上\VC98\MFC\INCLUDE就ok了)
有时候还可能找不到mfc的lib。。同样的在工具(tools)->选项(options)->目录(derectories)的目
录选择Library files添加C:\Program Files\Microsoft Visual
Studio\VC98\MFC\LIB就可以了
如果还是不行的话, 那就在添加其他的文件,如下面一样!
:打开vc界面 点击VC“TOOLS(工具)”—>“Option(选择)”
—>“Directories(目录)”重新设置“Excutable Fils、Include Files、
Library Files、Source Files”的路径。
executatble files:
C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin
C:\Program Files\Microsoft Visual Studio\VC98\BIN
C:\Program Files\Microsoft Visual Studio\Common\TOOLS
C:\Program Files\Microsoft Visual Studio\Common\TOOLS\WINNT
include files:
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
library files:
C:\Program Files\Microsoft Visual Studio\VC98\LIB
C:\Program Files\Microsoft Visual Studio\VC98\MFC\LIB
source files:
C:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE
C:\Program Files\Microsoft Visual Studio\VC98\ATL\INCLUDE
C:\Program Files\Microsoft Visual Studio\VC98\CRT\SRC
阅读(13893) | 评论(0) | 转发(0) |