Typedef, Enum, Union, and Struct Attributes
The following attributes apply to the typedef, struct, and enum C++ keywords.
Attribute | Description |
|---|---|
Used with the switch_type attribute in a union. | |
Lets you define your own attribute. | |
Causes a data structure to be placed in the .idl file. | |
Specifies the index of the first array element to be transmitted. | |
Specifies a context ID that lets the user view information about this element in the Help file. | |
Sets the name of the Help file for a type library. | |
Specifies a character string that is used to describe the element to which it applies. | |
Places a construct inside the .idl file's library block. | |
Designates a pointer as a full pointer. | |
Ensures that a typedef will go into the type library even if it is not referenced from within the .idl file. | |
Identifies a reference pointer. | |
Specifies the expression or identifier acting as the union discriminant that selects the union member. | |
Identifies the type of the variable used as the union discriminant. | |
Specifies a unique pointer. | |
Specifies a data type that will be used for transmission instead of an application-specific data type. |
Attribute | Description |
|---|---|
Lets you define your own attribute. | |
Causes a data structure to be placed in the .idl file. | |
Specifies the unique ID for a class or interface. | |
Directs that the specified enumerated type be transmitted as a 32-bit entity, rather than the 16-bit default. |
Attribute | Description |
|---|---|
Lets you define your own attribute. | |
Causes a data structure to be placed in the .idl file. | |
Specifies the index of the first array element to be transmitted. | |
Specifies the index of the last array element to be transmitted. | |
Specifies the number of array elements to be transmitted. | |
Designates the maximum value for a valid array index. | |
Specifies the size of memory allocated for sized pointers, sized pointers to sized pointers, and single- or multidimensional arrays. | |
Specifies a unique pointer. | |
Specifies the unique ID for a class or interface. |
Attribute | Description |
|---|---|
Controls the network data representation alignment of nonencapsulated unions. | |
Prevents the compiler from injecting code as a result of attribute use. |
Attribute | Description |
|---|---|
Indicates that the class supports aggregation. | |
Indicates that a control aggregates the target class. | |
Identifies the coclass as an application object, which is associated with a full .exe application, and indicates that the functions and properties of the coclass are globally available in this type library. | |
Creates an ActiveX control. | |
Adds an interface entry to a COM map. | |
Specifies that the user-defined type is a control. | |
Lets you define your own attribute. | |
Binds a specified column to the rowset. | |
Creates an OLE DB command. | |
Associates the specified member variable with an input or output parameter and delimits the variable. | |
Creates a connection to a data source. | |
Opens an OLE DB table. | |
Indicates that the custom or dispinterface defined within a coclass represents the default programmability interface. | |
Defines an interface as the default vtable interface for a control. | |
Creates an event receiver. | |
Creates an event source. | |
Causes a data structure to be placed in the .idl file. | |
Specifies the index of the first array element to be transmitted. | |
Indicates that the item exists but should not be displayed in a user-oriented browser. | |
Specifies implemented component categories for the class. | |
Specifies the index of the last array element to be transmitted. | |
Specifies the number of array elements to be transmitted. | |
Designates the maximum value for a valid array index. | |
Specifies the required component categories of the target class. | |
Specifies the size of memory allocated for sized pointers, sized pointers to sized pointers, and single- or multidimensional arrays. | |
On a class, specifies the COM object's source interfaces for connection points. On a property or method, indicates that the member returns an object or VARIANT that is a source of events. | |
Specifies the threading model for a COM object. | |
Specifies a unique pointer. | |
Specifies the unique ID for a class or interface. | |
Identifies a particular version among multiple versions of a class. | |
Specifies a version-independent form of the ProgID. |