Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to call a VFP program from ASP
Message
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00658704
Message ID:
00658831
Views:
15
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform