borghard
asked on
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";
[
object,
uuid(E655B3C6-05EC-4A1B-B0 8F-488826F 25234),
helpstring("ISymbol Interface"),
pointer_default(unique)
]
interface IDerivedSymbol : IBaseSymbol
{
//added 2 additional methods here
};
[
uuid(A66139F8-A5FE-4CC0-AE 92-ECEB001 9B263),
version(1.0),
helpstring("1.0 Type Library")
]
library SYMBOLLib
{
importlib("stdole32.tlb");
importlib("stdole2.tlb");
[
uuid(C2827C0A-16E4-4364-85 4A-179BE3D 33A88),
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.
Thanks
import "oaidl.idl";
import "ocidl.idl";
import "myBase.idl";
[
object,
uuid(E655B3C6-05EC-4A1B-B0
helpstring("ISymbol Interface"),
pointer_default(unique)
]
interface IDerivedSymbol : IBaseSymbol
{
//added 2 additional methods here
};
[
uuid(A66139F8-A5FE-4CC0-AE
version(1.0),
helpstring("1.0 Type Library")
]
library SYMBOLLib
{
importlib("stdole32.tlb");
importlib("stdole2.tlb");
[
uuid(C2827C0A-16E4-4364-85
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.
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.