Question about COM and QueryInterface

  • Thread starter Thread starter A D R I A N
  • Start date Start date
A

A D R I A N

Guest
I have imported an interface into my source file. I then create an instance of an object and call a function that is to return another object. The call succeeds, but the returned object is an IDispatch object. So I try and get it converted to the expected type (both directly and indirectly via QueryInterface) and it doesn't work. However, if I call a function that the object is supposed to have, the call succeeds.

My question is, why is this failing? Is the published uuid not the correct one? If I were part of the company that created this object, what would I be fixing? (I am part of the company, but in a different department and the SW in question was acquired, so this information is relevant to helping out another team).




I don't mind someone marking a post as "Proposed as answer", but DO NOT mark it as "Answered". If I am the OP, I will decide if a post actually answers my post or not. Thank you.

Continue reading...
 
Back
Top