December 1st, 1999, 11:26 AM
Does anyone know how I can create a DLL to accept an internet form information? Or an ActiveX component?
Thanks
Thanks
|
Click to See Complete Forum and Search --> : Sending form info to DLLs December 1st, 1999, 11:26 AM Does anyone know how I can create a DLL to accept an internet form information? Or an ActiveX component? Thanks Jan Hansen January 26th, 2000, 09:41 AM No - but I have the same problem. If you now know how to do it - please tell me. Thanks in advance Best regards Jan Hansen - jan@flexcom.dk Lothar Haensler January 26th, 2000, 10:52 AM I'd use a VB ActiveX DLL on the server and an ASP as an interface to that DLL. Instantiate the VB DLL via Server.Createobject. Then, pass the Request and Reponse object to one of the methods of the DLL. Voila, the DLL can now get FORM variables via the request object and output HTML code via the Response object. Johnny101 January 26th, 2000, 11:04 AM Just a side note, if you were to do this, and you wanted to use early binding in your DLL tot he Request and Response objects, you would have to be running either IIS4 or Personal Web Server on the machine where you compile the DLL. In the references of the project you would select the Microsoft Active Server Pages Library. This is a very powerful way of processing all sorts of ASP stuff, whether it's form data or returning a table built from a recordset, this is the only way i write my ASP components. But in mine, I add a class and call it clsASP and in this class I have a routine named Sub OnStartPage(PassedScriptingContext As ScrintingContext) End Sub IIS and PWS will pass your dll a reference to the scripting context when your asp page requests that dll, and from there you can get to everything in ASP! The server object, the request, response, application and session objects! so actually my asp pages are just "containers" for these components and all the data access code, html processing, string concatinations are done in compiled code, which does make a difference in web site performance. Just some thoughts, John John Pirkey MCSD www.ShallowWaterSystems.com codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |