Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dot net class libraries and VFP ?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00917812
Message ID:
00917874
Vues:
32
Hi William,
just create a new .Net solution, add a "Class Library" project to the solution.
In the project properties check the "Register for COM interop" checkbox, add code to the classes, for example:

Public Class Class1
Public Function hello()
Return "hello"
End Function
End Class

Generate the solution, switch to VFP, in the command window type:

xx=CREATEOBJECT("theprojectname.class1")
?xx.hello

you are done.

there's also a Rick Strahl article:
NET Interop for Visual FoxPro Applications
http://www.west-wind.com/presentations/VFPDOTNETiNTEROP/VFPDOTNETINTEROP.HTM

HTH
Franco

>A while back [someone find it and tell me] there was a discussion about classlibraries in dot net that were callable directly from VFP.
>
>anyone make any headway ?
>
>can't remember with language it was ^from, but some folks had some inroads and made some progress.
>
>mondo regards [Bill]
>ps - I could be dead wrong, of course - this may have been some discussion over at ProFox.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform