Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can C# and Dot Net read a VFP DLL
Message
 
To
17/10/2003 09:26:53
Joel Hokanson
Services Integration Group
Bellaire, Texas, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00839705
Message ID:
00839753
Views:
16
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform