Gerard,
Create a vfp class as olepublic and always compile to a VFP mtdll. Then you just call a method in that VFP class from your minimal asp or asp.net script. I just use 1 centralized VFP method that looks at the web url in a VFP CASE statement to decide what to do next. Take a look at the resource page at
www.activevfp.com for more info...
>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