I'm doing small program using VB 6 to tests receive/send from/to pocketpc
pda files.
I have used DeviceToDesktop function successfully but DesktopToDevice not
jet.
Some helps mention CERapiInit or CERapiInitEx functions from rapi.dll should
be used before above functions to clear Windows CE Rapi but I don't know how
I should declare CERapiInit function.
Code used:
Private Declare Function DESKTOPTODEVICE Lib _
"c:\program files\Microsoft ActiveSync\adofiltr.dll" _
(ByVal desktoplocn As String, _
ByVal tablelist As String, _
ByVal sync As Boolean, _
ByVal overwrite As Integer, _
ByVal devicelocn As String) As Long
Private Declare Function DEVICETODESKTOP Lib _
"c:\program files\Microsoft ActiveSync\adofiltr.dll" _
(ByVal desktoplocn As String, _
ByVal tablelist As String, _
ByVal sync As Boolean, _
ByVal overwrite As Integer, _
ByVal devicelocn As String) As Long
...
Dim Lresult As String
Lresult = 0
Lresult = DESKTOPTODEVICE(App.Path & "\prueba.mdb", "Clientes..", False,
True, "\prueba.cdb")
...
*****
Above function returns 0 then it have success.
*****
Lresult = 0
Lresult = DESKTOPTODEVICE(App.Path & "\prueba.mdb", "Clientes..", False,
True, "\prueba.cdb")
...
*****
Above function returns -2146824448 then it have not success.
*****
How should I declare CERapiInit function?
Maybe I'm doing something else wrong. What could be?
THANKS!