Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Call DLL from ASP page
Message
 
À
28/07/2001 00:28:24
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00534820
Message ID:
00536796
Vues:
9
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
Fil
Voir

Click here to load this message in the networking platform