ADO操作Access数据库遇到的问题求助啊
#import "c:\program files\common files\system\ado\msado15.dll" rename("EOF","adoEOF")
#import "C:\Program Files\Common Files\System\ado\msjro.dll" rename("ReplicaTypeEnum", "_ReplicaTypeEnum")
#import "C:\Program Files\Common Files\system\ado\msadox.dll" rename("EOF","adoxEOF")
ado操作Access数据库时用到这三个dll
msadox.dll创建数据库
msado15.dll操作数据库
msjro.dll压缩修复数据库
但是这三个同时引入时出错,怎么解决啊,单独的就可以。
错误信息
d:\myprojects\compact\debug\msjro.tlh(102) : error C2146: syntax error : missing ';' before identifier 'ConflictTables'
d:\myprojects\compact\debug\msjro.tlh(102) : error C2501: '_RecordsetPtr' : missing storage-class or type specifiers
d:\myprojects\compact\debug\msjro.tlh(102) : error C2501: 'ConflictTables' : missing storage-class or type specifiers
d:\myprojects\compact\debug\msjro.tlh(130) : error C2146: syntax error : missing ';' before identifier 'GetConflictTables'
d:\myprojects\compact\debug\msjro.tlh(130) : error C2501: '_RecordsetPtr' : missing storage-class or type specifiers
d:\myprojects\compact\debug\msjro.tli(43) : error C2143: syntax error : missing ';' before 'tag::id'
d:\myprojects\compact\debug\msjro.tli(43) : error C2433: '_RecordsetPtr' : 'inline' not permitted on data declarations
d:\myprojects\compact\debug\msjro.tli(43) : error C2501: '_RecordsetPtr' : missing storage-class or type specifiers
d:\myprojects\compact\debug\msjro.tli(43) : fatal error C1004: unexpected end of file found