COM Data Type Mapping

Method and property descriptions in this guide describe types with Visual Basic 6 data types. For users of languages other than Visual Basic 6, the following table maps the Visual Basic 6 types used in this guide to COM types:

Visual Basic 6 TypesCOM Types
BooleanVARIANT_BOOL
ByteByte
StringBSTR
DoubleDouble
SingleFloat
Integershort
Longlong
ObjectIDispatch
ObjectIUnknown
Variant (array)Variant *
VariantVariant