-
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
-
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
>
>
-
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)
-
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)
-
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
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks