COM IUnknown and do I need a pointer to it first before calling CoGetClassObject?

Posted by Tony on Stack Overflow See other posts from Stack Overflow or by Tony
Published on 2010-05-16T12:15:45Z Indexed on 2010/05/16 12:20 UTC
Read the original article Hit count: 485

Filed under:
|
|
|

In COM, when you want to create an instance of some COM Server object, do you first need to get a pointer to it's IUnknown interface and only then create a class object using CoGetClassObject?

As far as I understand it, IUnknown is used to manage object lifetimes, so from my understanding, whatever object the client wants to create, one needs a pointer to it's IUnknown interface implementation first.

Sound correct? If not, can anyone tell me how it works?

© Stack Overflow or respective owner

Related posts about com

Related posts about iunknown