I have a VB6 app that transfers files from the PocketPC to the desktop
using the DeviceToDesktop api call:
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
I get a vb error 6 (overflow) when it hits this line:
lngRetVal = DEVICETODESKTOP(strDeskPath, "", False, True,
strDevPath)
This code has worked in the past but is now failing consistently on
multiple user PCs. It still works on the developer PC.
I can reproduce this error by changing strDevPath to a bogus
file-name, so it makes me think that for whatever reason, when the
code runs on the user PC, it can't find the specified file on the
device, even though I have otherwise verified that it exists.
Anyone have any ideas?
Gerald