Solved

Problem using DeviceToDesktop with VB6

Posted on 2002-04-09
4
211 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I think the most popular question in our Windows Mobile Programming zone is about the backlight - we all want to keep it on when our application is running. Few years ago the function SystemIdleTimerReset() did this job. On our side we had to detec…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
This video discusses moving either the default database or any database to a new volume.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

747 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now