Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Call DLL from ASP page
Message
 
To
28/07/2001 00:28:24
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00534820
Message ID:
00536796
Views:
10
Here's the basic structure we use:

Set oServer = Server.CreateObject("avfpdemo.server")
Response.Write(oServer.demo(Request,Response,Session))

The idea is to pass the ASP objects (Request,Response,Session) to VFP so you can manipulate them there. Put COMRETURNERROR in your VFP class error method to return back any errors to the browser..

>Here is the ASP page I created (edited cause UT doesn't allow scripting words):
>-------------------------------------------------------------------------------
>< % @ language = vbscript % >
>...
>< %
>dim oMyDLL
>set oMyDLL = server.CreateObject("mydll.myclass")
>% >
>< P >Success!< / P >
>< % set oMyDLL=nothing % >
>...
>
>I suspect that when executing line "set oMyDLL=server..." something happened on the server but I don't how to be sure since nothing displayed on my screen nor on server's (just a beep from server's PC speaker). No page returned to my browser. How can I trap the error (or whatever stop my ASP from responding)? All I'm trying to do was create a simple web-based app by combining ASP page with DLL created w/ VFP *sigh*
Previous
Reply
Map
View

Click here to load this message in the networking platform