Results 1 to 3 of 3

Thread: Using OpenNetCF via RAPI to copy files.

  1. #1

    Thread Starter
    Frenzied Member dinosaur_uk's Avatar
    Join Date
    Sep 2004
    Location
    Jurassic Park
    Posts
    1,098

    Resolved 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.

  2. #2
    Fanatic Member Strider's Avatar
    Join Date
    Sep 2004
    Location
    Dublin, Ireland
    Posts
    612

    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:
    1. Public Sub New()
    2.         MyBase.New()
    3.  
    4.         'This call is required by the Windows Form Designer.
    5.         InitializeComponent()
    6.  
    7.         'Add any initialization after the InitializeComponent() call
    8.         Try
    9.  
    10.             m_rapi = New RAPI
    11.             m_activesync = m_rapi.ActiveSync
    12.  
    13.         Catch ex As RAPIException
    14.             m_rapi = Nothing
    15.             MsgBox(ex.Message)
    16.         Catch ex As DllNotFoundException
    17.             m_rapi = Nothing
    18.             MsgBox(ex.Message)
    19.         End Try
    20.     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

  3. #3

    Thread Starter
    Frenzied Member dinosaur_uk's Avatar
    Join Date
    Sep 2004
    Location
    Jurassic Park
    Posts
    1,098

    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
  •  



Click Here to Expand Forum to Full Width