COM IUnknown and do I need a pointer to it first before calling CoGetClassObject?
- by Tony
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?