Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PPC 2003 DesktopToDevice Fails

Status
Not open for further replies.

NJLDoc

Programmer
Jan 25, 2002
93
I have written a database application using eVB for both HPC and PPC 2002 which use the DeviceToDesktop and DesktopToDevice function. When run on PPC 2003 with the legacy runtime files required for eVB applications to run, our desktop software will no longer transfer an overwrite database to the PPC. I must manually delete the PPC database or rename it first. The DeviceToDesktop does however still work.


Is there an additional step required for PPC 2003 or is there a way to programmatically change the PPC database name through code (which wiould avoid the error) from a desktop application written in VB 6 ? The return value of DeviceToDesktop is -2147024864 which I cannot find on MSDN.
 
Have you found an answer yet? I seem to be having the same problem. I wrote the application originally for 2002 using eVB, and now with a PPC 2003, I get that same error message when trying to overwrite a database on the PPC.

Please let me know if you have the answer.
Thanks,
rveith@gti.net
 
I am pleased to read that I am not alone despite the lack of postings concerning this issue.

I have not yet found the solution, if in fact one exists outside of a bug in PPC 2003. I have however utilized the RemoteCE.tlb, which encapsulates the RAPI.dll function calls. This allows the device to be checked for the existence of the file to be overwritten and if found deletes it. Not ideal but effective for my purposes.

I will let you know if I come across the solution and hope you will also.
 
Thanks very much for the suggestion! It works for me. Although in my case, the VB "application" is really VB code in an Access 97 application, and I have found that in this case I have to distribute RemoteCE.tlb along with the application.

But I certainly appreciate the help. Thanks again!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top