Inheriting from a COM Implementation class

I have a COM interface in the .idl file that looks like this:
import "oaidl.idl";
import "ocidl.idl";
import "myBase.idl";
          helpstring("ISymbol Interface"),
     interface IDerivedSymbol : IBaseSymbol
      //added 2 additional methods here    


     helpstring("1.0 Type Library")
library SYMBOLLib
          helpstring("Symbol Class")
     coclass DerivedSymbol
          [default] interface IDerivedSymbol;
My implementaion class of the IDerivedSymbol interface is called CDerivedSymbol
How do I inherit the implementation class of the IBaseSymbol interface,(CBaseSymbol) so I can just reuse the existing methods in that interface.

Who is Participating?
jkrConnect With a Mentor Commented:
Check ("COM - Reusing Objects") as a good starting point into the docs - in COM, this is accomplished by using containment/delegation and aggregation.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.