default

[uuid, attribute-list] coclass coclass-name
{
[default
[, optional-interface-attribute]] interface | dispinterface interface-name
}

attribute-list
Specifies additional coclass attributes. Separate multiple attributes with commas.
optional-interface-attribute
The source attribute, which specifies that an interface or dispinterface is outgoing, is the only other attribute that can be used here.

Example

[ uuid(. . .), helpstring("Hello Class"),appobject]  coclass Hello
    {[default] interface IHello;
               interface IDispatch;
    };
 

Remarks

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.

Flags

IMPLTYPEFLAG_FDEFAULT

See Also

TYPEFLAGS, ODL File Syntax, ODL File Example, Generating a Type Library With MIDL