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. C#
  4. Using COM Objects (new interfaces)

Using COM Objects (new interfaces)

Scheduled Pinned Locked Moved C#
comtutorialquestion
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.
  • A Offline
    A Offline
    Anders Molin
    wrote on last edited by
    #1

    I have a COM object with 2 interfaces, IClient and IClient2. Using the object with the first interface is easy, I just add it to my project with "Project/Add Reference", and create it like this: Client tc = new Client(); Then I get access to all the functions in the IClient interface. But, I also have e newer interface, IClient2, which implements all methods from IClient and some new ones, but I can't figure out how to use IClient2 :confused: Anyone have a good idea? - Anders Money talks, but all mine ever says is "Goodbye!"

    J 1 Reply Last reply
    0
    • A Anders Molin

      I have a COM object with 2 interfaces, IClient and IClient2. Using the object with the first interface is easy, I just add it to my project with "Project/Add Reference", and create it like this: Client tc = new Client(); Then I get access to all the functions in the IClient interface. But, I also have e newer interface, IClient2, which implements all methods from IClient and some new ones, but I can't figure out how to use IClient2 :confused: Anyone have a good idea? - Anders Money talks, but all mine ever says is "Goodbye!"

      J Offline
      J Offline
      James T Johnson
      wrote on last edited by
      #2

      In case you don't get any answers here, the DOTNET mailing list has fielded a TON of questions on COM interop; something I haven't had to do which is why I can't answer your question. Sorry I don't have a straight-up answer, James Simplicity Rules!

      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