I am trying to understand how COM specifies the layout of its objects so that a client that wants to use a COM object knows how to do it.
I've read that a COM object that implements multiple interfaces can do it it in different ways including using nested classes or multiple inheritance.
My understanding is that both techniques would have to produce the same memory layout (conforming to the COM spec) so that a client that wants to use the COM object (for example in C), knows how to do it.
So my specific question is: is there a difference in memory layout for c++ objects implemented using multiple inheritance versus nested classes.
And could somebody point me to where a COM object layout is specified?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…