Results 1 to 2 of 2

Thread: Dll component created from VB or IIS?

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Posts
    14

    Dll component created from VB or IIS?

    I have an ActiveX dll component that I use in a VB app (created using the New keyword), and in an ASP web page (created using CreateObject). Is there any way to tell from within the component itself how it was created?

    For example, I'd like to have in the component's initialization sub, something like this

    sub Class_Initialize()
      blnFromWeb = LoadedFromWeb()
      if blnLoadedFromWeb then
        'do something
      else
        'do something else
      end if
    end sub

    function LoadedFromWeb() as boolean
      'I don't know what to do here...
    end function

    Thanks for any help!

  2. #2
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    Isn't there an OnStartPage event ASP will attempt to call? It might be obsolete, though.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

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