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

Re: DeviceToDesktop overflow error 6 by Peter

Peter
Mon Nov 24 13:17:09 CST 2003

What version of Pocket PC is the device? 2003?

Does the database file open correctly on the device prior to the copying
procedure?

Peter

--
Peter Foot
Windows Embedded MVP
OpenNETCF.org Senior Advisor
www.inthehand.com | www.opennetcf.org

"Gerald Moore" <mooreg@orau.gov> wrote in message
news:679b0d30.0311241054.25f827f5@posting.google.com...
> 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



Re: DeviceToDesktop overflow error 6 by mooreg

mooreg
Tue Nov 25 11:24:50 CST 2003

Thanks for the reply.

This device is running Pocket PC 2002. The database file opens
correctly on the device.


"Peter Foot [MVP]" <feedback@nospam-inthehand.com> wrote in message news:<#2RKQ#rsDHA.1740@TK2MSFTNGP12.phx.gbl>...
> What version of Pocket PC is the device? 2003?
>
> Does the database file open correctly on the device prior to the copying
> procedure?
>
> Peter
>
> --
> Peter Foot
> Windows Embedded MVP
> OpenNETCF.org Senior Advisor
> www.inthehand.com | www.opennetcf.org
>
> "Gerald Moore" <mooreg@orau.gov> wrote in message
> news:679b0d30.0311241054.25f827f5@posting.google.com...
> >
> > I get a vb error 6 (overflow) when it hits this line:
> >
> > lngRetVal = DEVICETODESKTOP(strDeskPath, "", False, True,
> > strDevPath)
> >

Re: DeviceToDesktop overflow error 6 by mooreg

mooreg
Sun Nov 30 13:45:37 CST 2003

bump

mooreg@orau.gov (Gerald Moore) wrote in message news:<679b0d30.0311250924.18c9e636@posting.google.com>...
> Thanks for the reply.
>
> This device is running Pocket PC 2002. The database file opens
> correctly on the device.
>
>
> "Peter Foot [MVP]" <feedback@nospam-inthehand.com> wrote in message news:<#2RKQ#rsDHA.1740@TK2MSFTNGP12.phx.gbl>...
> > What version of Pocket PC is the device? 2003?
> >
> > Does the database file open correctly on the device prior to the copying
> > procedure?
> >
> > Peter
> >
> > --
> > Peter Foot
> > Windows Embedded MVP
> > OpenNETCF.org Senior Advisor
> > www.inthehand.com | www.opennetcf.org
> >
> > "Gerald Moore" <mooreg@orau.gov> wrote in message
> > news:679b0d30.0311241054.25f827f5@posting.google.com...
> > >
> > > I get a vb error 6 (overflow) when it hits this line:
> > >
> > > lngRetVal = DEVICETODESKTOP(strDeskPath, "", False, True,
> > > strDevPath)
> > >