Claude, thanks for your reply.
How do I create AFPDemo2 in the forst place ? . Do I just have a project and build it into an exe file or a single threaded Dll or a multi threaded dll ?
Regards,
Gerard
>Gerard,
>Here's the simple way:
>
>< % ERROR:
>Session.Timeout = 1440
>Response.Expires=0
>Set oServer = Server.CreateObject("avfpdemo2.server")
>Response.Write(oServer.demo())
> % >
>
>
>avfpdemo2 is the VFP mtdll. Server is your VFP olepublic class. demo is the VFP method it's calling. In this case, VFP is also using the GetobjectContext to get the ASP built-in objects that will be used within VFP: Request, Response, Session. This also works with ASP.NET, btw.
>>What has to be done to call a VFP prgram from an ASP page ?
>>
>>I have a VFP program (Does not need user interaction) which creates a file with some records in it) which I want to call and run from an ASP page.
>>
>>Regards,
>>
>>Gerard