Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Tom Saddul
  Where is Tom Saddul?
 Paranaque
 Philippines
 Tom Saddul
 To: xfood xfood
  Where is xfood xfood?
 agrigento
 Italy
 xfood xfood
 Tags
Subject: RE: OpenNETCF
Thread ID: 373266 Message ID: 373340 # Views: 76 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: VFP and .NET
Date: Thursday, March 21, 2013 12:55:04 PM         
   


> Hi, I would like to translate this code from vb.net to VFP 9
> CAN I DO?
> THANK YOU VERY MUCH
>
>
> Salve, vorrei tradurre questo codice da vb.net a VFP 9
> SI PUO FARE?
> GRAZIE MILLE
>
>
> Imports OpenNETCF.Desktop.Communication
>
>
> Public Class Form1
>
> Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
> '
> Dim oRapi As New OpenNETCF.Desktop.Communication.RAPI
> '
> oRapi.Connect(True)
> '
> If oRapi.Connected Then
> oRapi.CopyFileFromDevice(stxPercorsoPC.Text.Trim, stxPercorsoDispositivo.Text.Trim, True)
> End If
> '
> oRapi.Disconnect()
> '
> End Sub
>
> End Class

If this is a VB.NET command, you can't just translate it to VFP since the library "OpenNETCF.Desktop.Communication.RAPI" is supposed to run under .NET environment.

Download Rick Sthral's DotNetBridge so you can use that library within your VFP app.

ENTIRE THREAD

OpenNETCF Posted by xfood xfood @ 3/20/2013 3:44:28 PM
RE: OpenNETCF Posted by Tom Saddul @ 3/21/2013 12:55:04 PM
RE: OpenNETCF Posted by xfood xfood @ 3/23/2013 12:16:01 PM
RE: OpenNETCF Posted by Tom Saddul @ 3/23/2013 2:18:18 PM
RE: OpenNETCF Posted by Vladimir Radjenovic @ 3/21/2013 5:18:21 PM
RE: OpenNETCF Posted by xfood xfood @ 3/21/2013 8:41:22 PM
RE: OpenNETCF Posted by Vladimir Radjenovic @ 3/22/2013 10:46:05 AM
RE: OpenNETCF Posted by xfood xfood @ 3/23/2013 12:04:37 PM
RE: OpenNETCF Posted by Vladimir Radjenovic @ 3/26/2013 10:13:55 AM
RE: OpenNETCF Posted by xfood xfood @ 3/27/2013 12:08:26 PM