User`s guide

B Data Conversion
B-4
VT_DECIMAL DECIMAL
+
vbDecimal -
96-bit (12-byte)
unsigned integer, scaled
by a variable power of 10
VT_BOOL VARIANT_BOOL
+
vbBoolean Boolean
Two-byte Boolean value
(0xFFFF = True; 0x0000
= False)
VT_DISPATCH IDispatch* vbObject Object
IDispatch*
pointer to
an object
VT_VARIANT VARIANT
+
vbVariant Variant
VARIANT
(can only be
specified if combined
with
VT_BYREF or
VT_ARRAY)
<anything>|VT_ARRAY
Bitwise combine
VT_ARRAY with any basic
type to declare as an
array
<anything>|VT_BYREF
Bitwise combine
VT_BYREF with any basic
type to declare as a
reference to a value
+
Denotes Windows-specific type. Not part of standard C/C++.
Table B-1: VARIANT Type Codes Supported (Continued)
VARIANT Type Code
(C/C++)
C/C++ Type Variant
Type Code
(Visual
Basic)
Visual
Basic
Type
Definition