Cannot open include file: 'afxcontrolbars.h': No such file or directory

在vs2008中运行某个程序时报如下错误:
Cannot open include file: 'afxcontrolbars.h': No such file or directory

 解决方法:

把#include <afxcontrolbars.h> 注释掉,
后面加了一行
#define CWinAppEx CWinApp

就好了,经本人测试,没有问题。
我发生过几次这个问题,都是以前用了vs2008SP1写的程序,现在用没有SP1的vs2008编译引起的。解决它的根本方法当然就是装SP1,但是这个SP1装起来需要1个钟头,很麻烦。而且装上要耗掉1G多硬盘空间。
posted @ 2014-05-15 09:38  文少爷  阅读(1858)  评论(0编辑  收藏  举报