M
Martin
Hi,
Suppose I have 3 interfaces :
IStats
IEngine
ICreateCar
each derives from IUnknown
then when I query object that implements those interfaces for IUnknown
interface I need to do two casts:
return (IUnknown*)(IStats*)this;
Is there no difference if I would write : (IUnknown*)(IEngine*)this ? these
are pure abstract interfaces, only pure virtual methods, suppose I had there
some data, would it then make any difference?
Thanks for any help, my COM book just dont get too deep with C++ OOP.
Suppose I have 3 interfaces :
IStats
IEngine
ICreateCar
each derives from IUnknown
then when I query object that implements those interfaces for IUnknown
interface I need to do two casts:
return (IUnknown*)(IStats*)this;
Is there no difference if I would write : (IUnknown*)(IEngine*)this ? these
are pure abstract interfaces, only pure virtual methods, suppose I had there
some data, would it then make any difference?
Thanks for any help, my COM book just dont get too deep with C++ OOP.