Solved

Problem using DeviceToDesktop with VB6

Posted on 2002-04-09
4
215 Views
Last Modified: 2013-12-27
Hi

I've been using the DeviceToDesktop and DesktopToDevice api within vb6. Desktop to device works perfectly.

Unfortunately, DeviceToDesktop returns an error when I call it as follows :

lngRet = DEVICETODESKTOP(Desk.Text, "", False, True, Mob.Text)

The error I get is -2146824447. Both text boxes are filled in, with the correct path of an Access 2000 db and a pocket access db.

Anyone have any ideas why it could be failing?

Thanks

Jeremy
0
Comment
Question by:JezzaKashel
  • 2
  • 2
4 Comments
 
LVL 4

Expert Comment

by:eeyore7250
ID: 6941340
Note:

Pocket Access Databases have the extension .cdb
Pocket SQL Databases have the extension .sdf

So when you reference them on the device make sure you use this extension rather than the desktop extensions.
0
 
LVL 4

Accepted Solution

by:
eeyore7250 earned 100 total points
ID: 6941351
Error: -2146824447
Description:The destination table may already exist on the desktop and Overwrite was set to False, or Overwrite was set to True but the table is not allowed to be overwritten. A log file may also display.
0
 

Author Comment

by:JezzaKashel
ID: 6941467
Hi Eeyore

Thanks for the reply. Really don't know why it was happening, but the problem is now fixed. I'm sure it was a simple error that
0
 

Author Comment

by:JezzaKashel
ID: 6941468
Hi Eeyore

Thanks for the reply. Really don't know why it was happening, but the problem is now fixed. I'm sure it was a simple error that I didn't notice. The log file is very useful.

Thanks

Jeremy
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A short article about problems I had with the new location API and permissions in Marshmallow
You should read OS supplied guidelines before developing. I can't stress that enough. The guidelines will help you understand the reasons mobile app developers do what they do.  Apple is very particular when they review appstore submissions.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question