S
superi
Unregistered / Unconfirmed
GUEST, unregistred user!
最近碰到一个麻烦问题,我在桌面pc上有一个数据库Manager.mdb,里面有数据表b,c ,d 。需要把数据库转换为掌上电脑pocket2003使用的数据库Manager.cdb,和把,Manager.cdb转换为Manager.mdb,转换其中的一个表或者,2个表都可以。也就是 Manager.mdb<---->Manager.cdb。不知道用Delphi如何实现?请教各位大虾了,就200分了,全送了,我查看了一些资料,用vb实现的代码,不知道用delphi如何实现,求救了……我把这个vb的代码也附上来吧,高手看看,帮帮忙。
定义了2个函数
从掌上电脑上载数据库,将*.cdb转换为*.mdb数据库
Declare Function DEVICETODESKTOP Lib "adofiltr.dll" _ ' (ByVal desktoplocn As String, _
ByVal tablelist As String, _
ByVal sync As Boolean, _
ByVal overwrite As Integer, _
ByVal devicelocn As String) As Long
'从桌面pc下载数据库,将*.mdb转换为*.cdb
Declare Function DESKTOPTODEVICE Lib "adofiltr.dll" _
(ByVal desktoplocn As String, _
ByVal tablelist As String, _
ByVal sync As Boolean, _
ByVal overwrite As Integer, _
ByVal devicelocn As String) As Long
'上载数据到桌面Access数据库
intRetVal = DEVICETODESKTOP(App.Path & "/Manager.mdb", "", False, True, "/Windows/Manager.cdb"
'下载数据到PDA数据库
intRetVal = DESKTOPTODEVICE(App.Path & "/Manager.mdb", "", False, True, "/Windows/Manager.cdb"
定义了2个函数
从掌上电脑上载数据库,将*.cdb转换为*.mdb数据库
Declare Function DEVICETODESKTOP Lib "adofiltr.dll" _ ' (ByVal desktoplocn As String, _
ByVal tablelist As String, _
ByVal sync As Boolean, _
ByVal overwrite As Integer, _
ByVal devicelocn As String) As Long
'从桌面pc下载数据库,将*.mdb转换为*.cdb
Declare Function DESKTOPTODEVICE Lib "adofiltr.dll" _
(ByVal desktoplocn As String, _
ByVal tablelist As String, _
ByVal sync As Boolean, _
ByVal overwrite As Integer, _
ByVal devicelocn As String) As Long
'上载数据到桌面Access数据库
intRetVal = DEVICETODESKTOP(App.Path & "/Manager.mdb", "", False, True, "/Windows/Manager.cdb"
'下载数据到PDA数据库
intRetVal = DESKTOPTODEVICE(App.Path & "/Manager.mdb", "", False, True, "/Windows/Manager.cdb"