The first field in the table below is the VARTYPE field whose value is drawn from the VARENUM enumeration. The VARENUM enumeration defines the possible VARIANT types. The current Automation controller supports the following values for VARTYPE:
VARTYPE | Syntax in IDL | Description |
VT_U1 | unsigned char | Byte |
VT_BOOL | boolean | True or False |
VT_I2 | short | 2-byte signed integer |
VT_I4 | long | 4-byte signed integer |
VT_R4 | float | 4-byte real |
VT_R8 | double | 8-byte real |
VT_CY | CURRENCY | currency |
VT_DATE | DATE | date |
VT_UNKNOWN | IUnknown * | Iunknown FAR * |
VT_BSTR | BSTR | binary string |
VT_DISPATCH | IDispatch * | Idispatch FAR * |
VT_VARIANT | VARIANT | VARIANT FAR * |