Home   Index   About
Ultimate Pack


Custom Search
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.


Last news from Greatis Software

Nostalgia .Net     Nostalgia .Net     .Net is powerful, but not all-powerful, so sometimes we need to use Win32 API for our .Net applications. It's simple enough with Platform Invoke if you have Win32 skill, but we do not always have time to dig the ancient documentation, declare the special types that are compatible with Win32, find the values of the Win32's constants and so on. Nostalgia .Net offers several simple-to-use classes, and components that will allow you to forget about the headache of Win32 and just use the power of Win32 in your application the same way as you use the native. Net classes.  More »

Recommended software for developers

Ultimate Pack for Delphi and C++ Builder     Ultimate Pack     Component pack for Delphi and C++ Builder that contains runtime form designer, runtime object inspector, print suite and much more for the very special price.  More »

Form Designer .Net     Form Designer .Net     Unique runtime form design solution that allows to edit any form in .Net WinForms application at runtime with full source codes for only 300 euro!  More »

Print Suite .Net     Print Suite .Net     Print Suite .Net is a set of components for easy printing texts, images and grids from your WinForms applications. Full C# source codes are available  More »

Gradient Controls .Net     Gradient Controls .Net     Gradient Controls .Net offers controls with gradient background feature. Labels, panels and so on... Full C# source codes are available  More »

iGrid     Greatis iGrid     iGrid plots drawing grid right over your desktop, so you can use it everywhere, with any drawing application without any special plugins for different graphic editors.  More »


All the contacts and projects

Dmitry Vasiliev (just.dmitry)

Related Links

Software for Visual Studio .NET developers
Software for Delphi and C++ Builder developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET

More Online Helps

Win32 Programmer's Reference
Win32 Multimedia Programmer's Reference
OLE Programmer's Reference
Microsoft Windows Pen API Programmer's Reference
Microsoft Windows Sockets 2 Reference
Microsoft Windows Telephony API (TAPI) Programmer's Reference
Unix Manual Pages

Free Tech Secrets ;) Copyright © 2008-2012 Free Tech Secrets ;) greatis just4fun network just4fun