General information
Category:
COM/DCOM and OLE Automation
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only