Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


Using RAPI library to transfer database from device to desktop


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-01-2008, 05:34 AM
Knows the basics
 
Join Date: Mar 2008
Posts: 67
Default Using RAPI library to transfer database from device to desktop

Hi Erel,

I use RAPI library to transfer database (sqlite) form device to desktop. I'm using ActiveSync 4.5. When I input data in the device, nothing (the same database? ) created in the Apppath on the desktop. What else should be done? The code for your perusal:

Sub App_Start
Form1.Show
rapi.New1
rapi.Connect
....
....
End sub

....
....

Sub rapi_connected
If rapi.DeviceFileExists ("\My documents\kamlapur.sl3")= ture Then
rapi.CopyFileFromDevice1("\My documents\kamlapur.sl3",AppPath)
End If
End Sub

I checked that the database "kamlapur.sl3" is being created in the dvice (My documents).


Sorry, if I fall short to make sense to you with my poor knowledge.

regards
Reply With Quote
  #2 (permalink)  
Old 04-01-2008, 07:44 AM
Knows the basics
 
Join Date: Apr 2007
Location: Canari Islan
Posts: 67
Default

Can be a problem writing has written "ture" instead of "true"


If rapi.DeviceFileExists ("\My documents\kamlapur.sl3")= ture Then
Reply With Quote
  #3 (permalink)  
Old 04-01-2008, 08:02 AM
Knows the basics
 
Join Date: Mar 2008
Posts: 67
Default

I'm ashamed.

Thanks and regards
Reply With Quote
  #4 (permalink)  
Old 04-01-2008, 08:39 AM
Knows the basics
 
Join Date: Mar 2008
Posts: 67
Default

Hi manu,
with the amendment, the code executed well on the desktop. but on the device gives errer message like:

An error occurred on sub app_start.

Line number:21

rapi.new1
Error descirption:NullReferenceException continue?


What is the mistake have I done?


regards
Reply With Quote
  #5 (permalink)  
Old 04-01-2008, 08:55 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,368
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

From the RAPI Help Overview

"The RAPI library (Remote API) is a desktop-only library which allows communication between the desktop and the device using ActiveSync."
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Different behaviour DeskTop and Device HARRY Questions & Help Needed 2 02-22-2008 12:36 PM
Using rapi from desktop to copy file from device to desktop sunnyboyj Questions & Help Needed 9 02-08-2008 11:40 AM
Problems using rapi to send files to desktop sunnyboyj Questions & Help Needed 4 01-06-2008 05:40 AM
Transfer to Device for test enonod Questions & Help Needed 5 10-13-2007 06:42 AM
RAPI library leo Questions & Help Needed 3 05-23-2007 06:04 PM


All times are GMT. The time now is 07:41 AM.


Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0