|
From: Chris T. <tel...@mi...> - 2000-09-13 11:17:56
|
Does anyone know which I can fine a description of the
COM ABI that describes what happens for multiple
inheartence?
Is it this?
struct A
{
PVOID vtable_A ;
int dataA ;
} ;
struct B
{
PVOID vtable_B ;
int dataB ;
} ;
struct C // : public A,B
{
PVOID vtable_A ;
int dataA ;
PVOID vtable_B ;
int dataB ;
} ;
And when you cast to B* it adjusts the offset to the B vtable.
What I'm not sure about is if this is the senerio where the
vtable for C goes. Does it get it's own vtable or do the
virtual functions for C get appended to the A or B vtable?
Anyone know if this is documented somewhere?
|