Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can C# and Dot Net read a VFP DLL
Message
 
À
17/10/2003 09:26:53
Joel Hokanson
Services Integration Group
Bellaire, Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00839705
Message ID:
00839753
Vues:
15
Absolutely! I've got a demo up at http://www.activevfp.com/avfpdemo2/default.aspx. BTW, you only need the free .NET Framework to do this. Just run TLBIMP over the .vfp. mtdll. Here's the code:
(<% is not translating properly here):
&lt;% @Page Language="C#" ASPCompat="true" %>
&lt;% @Import Namespace="avfpdemo2_dotnetproxy" %>
&lt;%
server x ;
x = new server() ;
try
   {
	Response.Write(x.main());
   }
catch(Exception ex)
   {
       	Response.Write("Caught .NET exception, source: " + ex.Source + " message: " + ex.Message);  
   }

%>
>Can a DLL written in VFP be used by Dot Net C# ?
>
>I do not even know how to develop a DLL, but I want to be able to share a validation routine wih a Dot Net program that views the same MS SQL data that my VFP 8 application is using.
>
>We tried using SQL stored procedures, but had problems with the return values.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform