CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Guest

    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


  2. #2
    Join Date
    Jan 2000
    Location
    DK
    Posts
    5

    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]


  3. #3
    Join Date
    May 1999
    Posts
    3,332

    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.


  4. #4
    Join Date
    Jan 2000
    Location
    MO, USA
    Posts
    1,506

    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
  •  





Click Here to Expand Forum to Full Width

Featured