Information générale
Catégorie:
COM/DCOM et 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*
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement