default
[uuid, attribute-list] coclass coclass-name
{
[default [, optional-interface-attribute]] interface |
dispinterface interface-name
}
attribute-list
Specifies
additional coclass
optional-interface-attribute
The source
Example
[ uuid(. .
.), helpstring("Hello Class"),appobject] coclass Hello
{ [default]
interface IHello;
interface IDispatch;
};
Remarks
The default
attribute Indicates that the interface
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