How do I transfer files from a program on the PC to the Pocket device?
I've tried to look for a drive with the name 'mobile device',
but I can't find the drive...
Printable View
How do I transfer files from a program on the PC to the Pocket device?
I've tried to look for a drive with the name 'mobile device',
but I can't find the drive...
www.opennetcf.org have a RAPI class that you use with the full framework.
It works over activesync to transfer files to the device.
here is the library API
http://www.opennetcf.org/library/Ope...unication.html
here is the link to download it
http://www.opennetcf.org/PermaLink.a...f-70dc239443c2
You gotta help me with this.
Can you give me a hint or anything?
If I want to transfer from C:\Program files\Bla.exe to
my pocked pc Program Files\Bla.exe.
Where do I start?
(in VBNET please)
Mmmm,
maybe this works:
http://msdn.microsoft.com/library/de...ad03242004.asp
yes that article is using the library from www.opennetcf.org
to transfer the files you need to first of connect via rapi, m_rapi.Connect
and then there is a method m_rapi.CopyFileToDevice() where you specify the location on the desktop machine and the destination on the device.
http://www.opennetcf.org/forums/forum.asp?FORUM_ID=23 is the forum for the RAPI
really nice...
Dim MyRapi as New RAPI
If MyRapi.DevicePresent = TRUE Then
MyRapi.Connect()
End IF
MyRapi Doesn't connect,
it takes an awfull lot of time and I don't wait that long!
I'm not crazy you know!
Am I doing something wrong here?
did you download the example from the site of the sample RAPI applicaiton
You need to create the instance of MyRapi inside the Contructor of the class
'************************
'member variables
'************************
Private WithEvents m_rapi As RAPI
Private WithEvents m_activesync As ActiveSync
Public Sub New()
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
'Add any initialization after the InitializeComponent() call
Try
m_rapi = New RAPI
m_activesync = m_rapi.ActiveSync
Catch ex As RAPIException
m_rapi = Nothing
MsgBox(ex.Message, MsgBoxStyle.Exclamation, "")
Catch ex As DllNotFoundException
m_rapi = Nothing
MsgBox(ex.Message, MsgBoxStyle.Exclamation, "")
End Try
End Sub
Oh sh...
Nothing.
I did exactly what you wrote, but still the same result.
No connection at all.
VBNet is waiting for something.
is activesync showing that the device is connected.
what happens if you add the following
If myrapi.devicepresent = true then
try
myrapi.connect
msgbox "connected"
catch ex as Rapi.exception
msgbox ex.message
finally
myrapi.disconnect
end try
It's very frustrating.
Now, I got activesynq running and it made a synq with the pocked PC.
And when I check the device present it's TRUE!
But Visual Studio get's stuck on the command myRapi.Connect.
The taskmanager shows no activity at all at the debugging program
that contains my Rapi Connect.
I really don't get it, I'm getting very sick of it
and I get the bad feeling that I won't succeed to make a connection ever.
So cheer me up will ya!
did you download the sample RAPI application (http://www.opennetcf.org/samples/RAPIVB.zip)
Did this work for you or did you get the same problem.
What version of activesync is installed?
Cheers man,
I should have tried this program much urlier.
This program works fine.
One thing now...
If I import the form into my existing program and load it within it, the connect command stucks at that line...
Although the form on it's own works great. (As it should work!)
Do you know how to handle this???
(You got me at least one step further!!!)
if you want post your .net solution as an attachment and i will have a look at it!!!!
Never mind,
I started with your opennetcf program and imported the forms and all of the modules and dll's of my program and it works great now!
Thanks for all the help!