I've got a CoClass that is describes as below:
[
uuid(xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx),
version(1.0),
helpstring("FooBar")
]
coclass FooBar
{
[default] interface IFoo;
interface IBar;
}
So my questions are:
- Why does
tlbimp
only expose theIFoo
interface, whileoleview.exe
shows both interfaces? - Does
tlbimp
only expose[default]
interfaces and why? (According to the MSDN[default]
"is intended for use by macro languages.") - How can I model this case in MIDL/COM? Should I use association instead of inheritance?