跪拜大牛,关于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
都是同类型的错误,请问怎么解决,菜鸟急求救,谢谢!!