|
-
December 1st, 1999, 12:26 PM
#1
Sending form info to DLLs
Does anyone know how I can create a DLL to accept an internet form information? Or an ActiveX component?
Thanks
-
January 26th, 2000, 10:41 AM
#2
Re: Sending form info to DLLs
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 - [email protected]
-
January 26th, 2000, 11:52 AM
#3
Re: Sending form info to DLLs
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.
-
January 26th, 2000, 12:04 PM
#4
Re: Sending form info to DLLs
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
John Pirkey
MCSD (VB6)
http://www.stlvbug.org
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|