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. Implementing more than one interfaces in same coclass

Implementing more than one interfaces in same coclass

Scheduled Pinned Locked Moved COM
c++question
3 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.
  • G Offline
    G Offline
    georgekjolly
    wrote on last edited by
    #1

    Hai, How can I implement more than one interfaces in same coclass using ATL Thanks George

    R 1 Reply Last reply
    0
    • G georgekjolly

      Hai, How can I implement more than one interfaces in same coclass using ATL Thanks George

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

      georgekjolly wrote:

      How can I implement more than one interfaces in same coclass using ATL

      This is the easiest way in VC6: You have to have a typelibrary for the interface you want to implement in your CoClass. This could mean that you define another interface in your IDL-file for your CoClass if it doesn't exist yet. Right-click your CoClass object in the ClassView and select "Implement interface..." and check the interfaces you want to implement in your CoClass.


      "It's supposed to be hard, otherwise anybody could do it!" - selfquote
      "High speed never compensates for wrong direction!" - unknown

      G 1 Reply Last reply
      0
      • R Roger Stoltz

        georgekjolly wrote:

        How can I implement more than one interfaces in same coclass using ATL

        This is the easiest way in VC6: You have to have a typelibrary for the interface you want to implement in your CoClass. This could mean that you define another interface in your IDL-file for your CoClass if it doesn't exist yet. Right-click your CoClass object in the ClassView and select "Implement interface..." and check the interfaces you want to implement in your CoClass.


        "It's supposed to be hard, otherwise anybody could do it!" - selfquote
        "High speed never compensates for wrong direction!" - unknown

        G Offline
        G Offline
        georgekjolly
        wrote on last edited by
        #3

        Hi Roger, I tried it, and its working. Now I am able to Query one interface from another(They belongs to different coclass) . Thanks George

        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