ActiveX Dll query...


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: ActiveX Dll query...

  1. #1
    Alex Kennedy Guest

    ActiveX Dll query...



    I have a sub-directory containing various ActiveX dll's all implementing
    the same interface class. From this directory I know the filename of each
    .dll file. How do I instantiate a new instance of one of these dll files
    i.e. how do I do a CreateObject only knowing the .dll filename?

    I know it is technically possible but I can't remember how it is done or
    what to search for to find out about it!

    Alex



  2. #2
    Arthur Wood Guest

    Re: ActiveX Dll query...


    Alex,
    In order to CreateObject() the DLLs must all be registered, and in order
    to be registered (and distinguished, regardless of the interface that they
    implement), they will ALL need different Names, and it is THAT name that
    you use when you CreateObject. Thus they can easily vbe distinguished.

    Arthur Wood


    "Alex Kennedy" <alex@isistool.co.uk> wrote:
    >
    >
    >I have a sub-directory containing various ActiveX dll's all implementing
    >the same interface class. From this directory I know the filename of each
    >.dll file. How do I instantiate a new instance of one of these dll files
    >i.e. how do I do a CreateObject only knowing the .dll filename?
    >
    >I know it is technically possible but I can't remember how it is done or
    >what to search for to find out about it!
    >
    >Alex
    >
    >



  3. #3
    Paul Clement Guest

    Re: ActiveX Dll query...

    On 5 Apr 2001 09:09:05 -0800, "Alex Kennedy" <alex@isistool.co.uk> wrote:



    I have a sub-directory containing various ActiveX dll's all implementing
    the same interface class. From this directory I know the filename of each
    dll file. How do I instantiate a new instance of one of these dll files
    i.e. how do I do a CreateObject only knowing the .dll filename?

    I know it is technically possible but I can't remember how it is done or
    what to search for to find out about it!

    Components are instantiated via the prog ID which is linked to a unique CLSID entry in the Registry.
    Unless each of these interfaces is uniquely identified I don't see how this can be accomplished.


    Paul ~~~ pclement@ameritech.net
    Microsoft MVP (Visual Basic)

  4. #4
    Alex Kennedy Guest

    Re: ActiveX Dll query...



    Yeah I know that! I think you're missing my point - I only know the filename
    for the dll! If I do:

    dim x as iMyInterface
    set x=createobject("XXXX.clsInferface")

    Is there any way of finding out the XXXX part from the dll?

    Alex


    >Components are instantiated via the prog ID which is linked to a unique

    CLSID entry
    >in the Registry.
    >Unless each of these interfaces is uniquely identified I don't see how this

    can be accomplished.
    >
    >
    >Paul ~~~ pclement@ameritech.net
    >Microsoft MVP (Visual Basic)



  5. #5
    Paul Clement Guest

    Re: ActiveX Dll query...

    On 6 Apr 2001 03:18:41 -0800, "Alex Kennedy" <alex@isistool.co.uk> wrote:



    Yeah I know that! I think you're missing my point - I only know the filename
    for the dll! If I do:

    You're correct I am missing your point because you weren't particularly specific. ;-)


    dim x as iMyInterface
    set x=createobject("XXXX.clsInferface")

    Is there any way of finding out the XXXX part from the dll?

    Alex


    Other than searching the Registry (HKCR\CLSID branch) for the filename/path the answer would be
    'no'.


    Paul ~~~ pclement@ameritech.net
    Microsoft MVP (Visual Basic)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center