Visual C ++ 2008,#include“ afxdb.h”时出错

问题描述

| 我在使用adxdb.h时遇到了麻烦: 我尝试过了
#include \"afxdb.h\"
但是我收到了这个错误:   C:\\ Program Files \\ Microsoft Visual Studio 9.0 \\ VC \\ atlmfc \\ include \\ afx.h(24):致命错误C1189:#error:使用/ MD [d]构建MFC应用程序(CRT dll版本)需要MFC共享dll版本。请#define _AFXDLL或不使用/ MD [d] 然后我加了
#define _AFXDLL
正如错误消息所告诉的,并得到了很多错误:   C:\\ Program Files \\ Microsoft Visual Studio 9.0 \\ VC \\ atlmfc \\ include \\ afxole.h(1455):错误C2504:\'CControlBar \':未定义基类1> C:\\ Program Files \\ Microsoft Visual Studio 9.0 \\ VC \\ atlmfc \\ include \\ afxole.h(1470):错误C2146:语法错误:标识符\'m_tracker \'前缺少\'; \'   1> C:\\ Program Files \\ Microsoft Visual Studio 9.0 \\ VC \\ atlmfc \\ include \\ afxole.h(1470):错误C4430:缺少类型说明符-假定为int。注意:C ++不支持default-int   1> C:\\ Program Files \\ Microsoft Visual Studio 9.0 \\ VC \\ atlmfc \\ include \\ afxole.h(1470):错误C4430:缺少类型说明符-假定为int。注意:C ++不支持default-int   1> C:\\ Program Files \\ Microsoft Visual Studio 9.0 \\ VC \\ atlmfc \\ include \\ afxpriv.h(590):错误C2504:\'CControlBar \':未定义基类 关于如何解决此问题的任何想法? 附言我是Visual C ++的新手     

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)