Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Asp.net
Message
 
To
27/10/2002 02:21:48
General information
Forum:
Visual FoxPro
Category:
Internet applications
Title:
Miscellaneous
Thread ID:
00715843
Message ID:
00715857
Views:
17
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform