[uuid, attribute-list] coclass coclass-name
{
[default [, optional-interface-attribute]] interface | dispinterface interface-name
}
[ uuid(. . .), helpstring("Hello Class"),appobject] coclass Hello
{[default] interface IHello;
interface IDispatch;
};
The default attribute Indicates that the interface or dispinterface, defined within a coclass, represents the default programmability interface. This attribute is intended for use by macro languages.
A coclass may have at most two default members. One represents the outgoing (source) interface or dispinterface, and the other represents the incoming (sink) interface or dispinterface. If the default attribute is not specified for any member of the coclass or cotype, the first outgoing and incoming members that do not have the restricted attribute are treated as the defaults.
IMPLTYPEFLAG_FDEFAULT
TYPEFLAGS, ODL File Syntax, ODL File Example, Generating a Type Library With MIDL