appobject attribute
The [appobject] attribute identifies the coclass as an application object, which is associated with a full EXE application.
[
uuid(uuid-number),
appobject
[, coclass-attribute-list]
]
coclass classname
{
[coclass definition]
}
-
uuid-number
-
Specifies a universally unique identification number for the coclass.
-
coclass-attribute-list
-
Specifies zero or more attributes that apply to the coclass statement. Allowable coclass attributes are [helpstring], [helpcontext], [licensed], [version], [control], and [hidden].
-
classname
-
Specifies the name by which the component object is known in the type library.
-
coclass definition
-
Specifies statements that make up the coclass definition.
The [appobject] attribute also indicates that the functions and properties of the coclass are globally available in the current type library.
The typeflag representation for this attribute is TYPEFLAG_FAPPOBJECT
[
uuid(1e196b20-1f3c-1069-996b-00dd010fe676),
helpstring("Hello Class"),
appobject
]
coclass Hello
{
[default] interface IHello : IUnknown;
interface IDispatch;
}