Edit

Share via


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]
}

Parameters

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.

Remarks

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

Examples

[
    uuid(1e196b20-1f3c-1069-996b-00dd010fe676),
    helpstring("Hello Class"),
    appobject
] 
coclass Hello
{
    [default] interface IHello : IUnknown;
    interface IDispatch;
}

See also

coclass

control

Generating a Type Library With MIDL

helpstring

helpcontext

hidden

licensed

ODL File Example

ODL File Syntax

TYPEFLAGS

version