Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Asp.net
Message
 
À
27/10/2002 02:21:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Titre:
Divers
Thread ID:
00715843
Message ID:
00715857
Vues:
18
Xavier,
At least to start with, download the free .NET Framework at:
http://msdn.microsoft.com/netframework/downloads/howtoget.asp
Just with this, you can call VFP mtdlls from .NET - you simply run the included tlbimp
command on your VFP mtdll like:
tlbimp avfpdemo2.dll /out:avfpdemo2_dotnetproxy.dll
Now you can call your VFP mtdll from ASP.NET(.aspx), for example, with the following C# (entered using
NotePad or the VFP editor):
<% @Page Language="C#" ASPCompat="true" %>
<% @Import Namespace="avfpdemo2_dotnetproxy" %>
<%
server x ;    //server is the VFP class
x = new server() ;
try
   {
   	Response.Write(x.demo());   //demo is the VFP method 
   }
catch(Exception ex)
   {
       	Response.Write("Caught .NET exception, source: " + ex.Source + " message: " + ex.Message);  
   }
%>

>Hello,
>
>I looking for info and sample code etc... on how to use VFP in a .NET environement.
>Also what is the best complementry language (ASP.NET, VB.NET, C# ,...) I should learn to deploy my VFP apps on a .NET environement.
>
>Or should I simply drop VFP and move onto VS.NET
>
>I am still confused !
>
>Xavier
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform