Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. COM
  4. Without ClassID

Without ClassID

Scheduled Pinned Locked Moved COM
comquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • _ Offline
    _ Offline
    _8086
    wrote on last edited by
    #1

    Is there a way to access a COM component without knowing it's ClassID?

    ---------------------------- 286? WOWW!:-O

    R 1 Reply Last reply
    0
    • _ _8086

      Is there a way to access a COM component without knowing it's ClassID?

      ---------------------------- 286? WOWW!:-O

      R Offline
      R Offline
      Roger Stoltz
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups