Solved

Problem using DeviceToDesktop with VB6

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

Suggested Solutions

Title # Comments Views Activity
What is the MTK logger, is this a virus ? 6 39,598
Xamarin cross platform  vs native app development 6 248
Mobile app idea 6 100
Jailbreak iPhone 6 Plus 4 45
Preface: This article is part of a series focused on cross platform mobile app development (specifically Android and iOS) using the Alloy framework and Titanium Studio made by Appcelerator (https://www.appcelerator.com/). This article presumes a wor…
As the title indicates, I have done this before. It chills me everytime I update the OS on my phone, (http://www.experts-exchange.com/articles/18084/Upgrading-to-Android-5-0-Lollipop.html) because one time I did this and I essentially had a bricked …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

730 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