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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. COM
  4. Adding a new Interface to Existing component

Adding a new Interface to Existing component

Scheduled Pinned Locked Moved COM
comhelp
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.
  • B Offline
    B Offline
    BicycleTheif
    wrote on last edited by
    #1

    Hi i have added a new interface to an existing component.but when i tried to access the interface in the client program it is saying "access to QueryInterface failed". In this i have two interface both are derived from IDispatch. In COM_INTERFACE_ENTRY i have a ambigiuty error..i solved it with COM_INTERFACE_ENTRY2 macro. Is this have any effect onthe previous error.. Thanks in Advance

    M 1 Reply Last reply
    0
    • B BicycleTheif

      Hi i have added a new interface to an existing component.but when i tried to access the interface in the client program it is saying "access to QueryInterface failed". In this i have two interface both are derived from IDispatch. In COM_INTERFACE_ENTRY i have a ambigiuty error..i solved it with COM_INTERFACE_ENTRY2 macro. Is this have any effect onthe previous error.. Thanks in Advance

      M Offline
      M Offline
      Milton Karimbekallil
      wrote on last edited by
      #2

      Which interface showed error. first one or second one? and how did u call. thru IDispatch or queryinterface? COM_INTERFACE_ENTRY2 has impact on the calling mechanism, if u have more than IDispatch interfaces in a single CoClass. U can't invoke the second interface bu using IDspatch Invoke mthd. You have to use QueryInterface for that . Only the first Interface can have IDispatch Invokation. rgds...mil10

      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