代码改变世界

fatal error C1083: Cannot open include file: 'resource.h': No such file or directory

2012-03-31 18:00  youxin  阅读(3746)  评论(0)    收藏  举报

发生错误:fatal error C1083: Cannot open include file: 'resource.h': No such file or directory

vc6.0在创建window应用程序时,提供了三种选择,

1,一个空工程                              ---No files will be created or added to the project.

2.一个简单的win32应用程序           --Pre Compiled Header: Stdafx.h and Stdafx.cpp.

3,一个典型的win32应用程序       --Pre Compiled Header: Stdafx.h and Stdafx.cpp.

Resources: d.rc, resource.h, small.ico and d.ico

出现找不到resource文件是因为没有选择典型的win32应用程序,同理,出现错误:

fatal error C1083: Cannot open include file: 'stdafx.h': No such file or directory

是因为选择了空工程。