Solved

Problem using DeviceToDesktop with VB6

Posted on 2002-04-09
4
218 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
If you are anything like me, you install many apps on your phone and have your life on it, sometimes literally.  When I bought my current phone, a Samsung Galaxy S5 from Verizon, they were only selling the versions with 16 GB internal.  I didn't rea…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

734 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