[attribute-list]coclass classname {[attributes2] [interface | dispinterface] interfacename {. . . };
[uuid(. . .), version(1.0), helpstring("A class"), helpcontext(2481), appobject] coclass myapp
{
[source] interface IMydocfuncs : IUnknown;
dispinterface DMydocfuncs;
};
[uuid(. . .)]
coclass foo
{
[restricted] interface bar;
interface baz;
}
The coclass statement provides a listing of the supported interfaces for a component object.
The Microsoft® Component Object Model defines a class as an implementation that allows QueryInterface between a set of interfaces.
ODL File Syntax, ODL File Example, Generating a Type Library With MIDL, TYPEFLAGS