3 ms·
COM is agnostic as to how you do multiple inheritance - it doesn't have the concept. It specifies the QueryInterface protocol, but you don't need to return the
by barrkel 7y ago
COM is agnostic as to how you do multiple inheritance - it doesn't have the concept. It specifies the QueryInterface protocol, but you don't need to return the same instance for the result of the QI call, just one that uses the same lifetime refcount.
Tear-off interfaces and delegated implementations are things in this world.
- ptx 7y agoMeaning that the AddRef/Release counter has to be shared between that group of objects?
- pjc50 7y agoSame object, different interfaces.
- magicalhippo 7y agoYou can implement the other interfaces using other objects, but they should delegate the ref counting to the root/main object.