Without ClassID
-
Is there a way to access a COM component without knowing it's ClassID?
---------------------------- 286? WOWW!:-O
Depends on what you mean with "access a COM component without knowing its ClassID". You have to know something about it, if you want to create an instance of it... If you know the ProgID you can get the ClassID with
::CLSIDFromProgID()
. It could be a component that is registered as a member of a component category, which means that it expose interfaces that components of that category have to expose. Enumerating the members of a category will get you the ClassID for each component in that category. But if don't want to create an instance of the component, you would only need to know one of the interfaces it exposes and get an interface pointer from another client of that instance. Probably a confusing answer to a somewhat confusing question... :-> Post again and describe what you mean more clearly if the above doesn't help.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"High speed never compensates for wrong direction!" - unknown