Hello,
I have downloaded the .net framework, I have build a COM object and compiled in a MTDLL but now what must I do ?
How do I use the tlbimp ??
What is my next step to make my sample run from my asp page?
Thanks
Xavier
>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):
>
>< % ERROR: @Page Language="C#" ASPCompat="true" % >
>< % ERROR: @Import Namespace="avfpdemo2_dotnetproxy" % >
>< % ERROR:
>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