跪拜大牛,关于VC6创建access的问题

spark 2011-07-09 08:20:53
我在stdafx.h里添加如下:(我创建的是dll工程)

#pragma comment(lib,"shlwapi.lib")
#pragma warning(disable : 4146)
#include <icrsint.h>
#import "C:\\Program Files\\Common Files\\System\\ado\\msado15.dll" no_namespace rename ("EOF","adoEOF")
#import "C:\\Program Files\\Common Files\\System\\ado\\msadox.dll" no_namespace rename("EOF","xadoxEOF")

但是在cpp里创建access的时候,编译一直过不去错误如下:
c:\documents and settings\administrator\桌面\file\collectinfo\debug\msadox.tlh(104) : error C2011: '_Collection' : 'struct' type redefinition
c:\documents and settings\administrator\桌面\file\collectinfo\debug\msadox.tlh(133) : error C2011: '_DynaCollection' : 'struct' type redefinition
c:\documents and settings\administrator\桌面\file\collectinfo\debug\msadox.tlh(511) : error C2011: 'DataTypeEnum' : 'enum' type redefinition
c:\documents and settings\administrator\桌面\file\collectinfo\debug\msadox.tlh(554) : error C2011: 'Properties' : 'struct' type redefinition
c:\documents and settings\administrator\桌面\file\collectinfo\debug\msadox.tlh(580) : error C2011: 'Property' : 'struct' type redefinition

都是同类型的错误,请问怎么解决,菜鸟急求救,谢谢!!
...全文
79 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
wwwwb 2011-08-25
  • 打赏
  • 举报
回复
呵呵,自己解决更好
ACMAIN_CHM 2011-08-24
  • 打赏
  • 举报
回复
spark 2011-08-24
  • 打赏
  • 举报
回复
没人回答,自己回答:把第一句的("EOF","adoEOF")去掉即可

7,713

社区成员

发帖
与我相关
我的任务
社区描述
Microsoft Office Access是由微软发布的关系数据库管理系统。它结合了 MicrosoftJet Database Engine 和 图形用户界面两项特点。
社区管理员
  • Access
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧