|
-
Apr 1st, 2005, 01:17 PM
#1
Thread Starter
Frenzied Member
Using OpenNetCF via RAPI to copy files.
Hi hi ...
please help,
I am using OpenNetCF with RAPI to copy files to and from the Pocket pc, or at least i am trying to
I am using
m_rapi.CopyFileToDevice("C:\test.txt", "test.txt")
But it does not seem to work at all!?!?1
what do i need to do?
Cheers
Last edited by dinosaur_uk; Apr 21st, 2005 at 03:04 AM.
-
Apr 4th, 2005, 04:04 AM
#2
Fanatic Member
Re: Using OpenNetCF via RAPI to copy files.
what are your error msgs...whats happenign????
inside the constructor of the form you need to create the instance of rapi and activesyc
VB Code:
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)
Catch ex As DllNotFoundException
m_rapi = Nothing
MsgBox(ex.Message)
End Try
End Sub
is this missing??
now you should be able to use m_rapi.copytodevice()
Barry
Visual Studio .NET 2008/Visual Studio .NET 2005/Visual Studio .NET 2003
.NET Framework 3.0 2.0 1.1/ASP.Net 3.0 2.0 1.1/Compact Framework 1.0
SQL Server 2005/2000/SQL Server CE 2.0
If you like, rate this post
Compact Framework for Beginners
-
Apr 4th, 2005, 04:06 AM
#3
Thread Starter
Frenzied Member
Re: Using OpenNetCF via RAPI to copy files.
Hey!
it works,,,
i was add to your reputation, but the system does not allow me to add any more yet..
Cheers a million!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|