TYPEFLAGS

The TYPEFLAGS enumeration is defined as follows:

typedef enum tagTYPEFLAGS {

TYPEFLAG_FAPPOBJECT = 0x01

, TYPEFLAG_FCANCREATE = 0x02

, TYPEFLAG_FLICENSED = 0x04

, TYPEFLAG_FPREDECLID = 0x08

, TYPEFLAG_FHIDDEN = 0x10

, TYPEFLAG_FCONTROL = 0x20

, TYPEFLAG_FDUAL = 0x40

, TYPEFLAG_FNONEXTENSIBLE = 0x80

, TYPEFLAG_FOLEAUTOMATION = 0x100

} TYPEFLAGS;

Value
Description
TYPEFLAG_FAPPOBJECT
A type description that describes an Application object.
TYPEFLAG_FCANCREATE
Instances of the type can be created by ITypeInfo::CreateInstance.
TYPEFLAG_FLICENSED
The type is licensed.
TYPEFLAG_FPREDECLID
The type is predefined. The client application should automatically create a single instance of the object that has this attribute. The name of the variable that points to the object is the same as the class name of the object.
TYPEFLAG_FHIDDEN
The type should not be displayed to browsers.
TYPEFLAG_FCONTROL
The type is a control from which other types will be derived, and should not be displayed to users.
TYPEFLAG_FDUAL
The types in the interface derive from IDispatch and are fully compatible with OLE Automation. Not allowed on Dispatch interfaces.
TYPEFLAG_FNONEXTENSIBLE
The interface can't add members at run time.
TYPEFLAG_FOLEAUTOMATION
The types used in the interface are fully compatible with OLE, and may be displayed in an object browser. Setting dual on an interface sets this flag in addition to TYPEFLAG_FDUAL. Not allowed on dispinterfaces.

TYPEFLAG_FAPPOBJECT may be used on type descriptions with TypeKind = TKIND_COCLASS, and indicates that the type description describes an Application object.

Members of the Application object are globally accessible in that the Bind method of the ITypeComp instance associated with the library binds to the members of an Application object just as it does for type descriptions that have TypeKind = TKIND_MODULE.

The type description implicitly defines a global variable with the same name and type as the type described by the type description. This variable is also globally accessible. Specifically, when Bind is passed the name of an Application object, a VARDESC is returned describing the implicit variable. The ID of the implicitly created variable is always ID_DEFAULTINST.

When the CreateInstance function of an Application object type description is called, it uses GetActiveObject to retrieve the Application object. If GetActiveObject fails because the application is not running, then CreateInstance calls CoCreateInstance (which should start the application).

When TYPEFLAG_FCANCREATE is True, ITypeInfo::CreateInstance can create an instance of the type. Note that this is currently true only for component object classes for which a GUID has been specified.

Software for developers
Delphi Components
.Net Components
Software for Android Developers
More information resources
MegaDetailed.Net
Unix Manual Pages
Delphi Examples
Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database