| description | Learn more about: _variant_t Extractors | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| title | _variant_t Extractors | ||||||||||||||||||||||||||||||||
| ms.date | 11/04/2016 | ||||||||||||||||||||||||||||||||
| f1_keywords |
|
||||||||||||||||||||||||||||||||
| helpviewer_keywords |
|
||||||||||||||||||||||||||||||||
| ms.assetid | 33c1782f-045a-4673-9619-1d750efc83a9 |
Microsoft Specific
Extract data from the encapsulated VARIANT object.
operator short( ) const;
operator long( ) const;
operator float( ) const;
operator double( ) const;
operator CY( ) const;
operator _bstr_t( ) const;
operator IDispatch*( ) const;
operator bool( ) const;
operator IUnknown*( ) const;
operator DECIMAL( ) const;
operator BYTE( ) const;
operator VARIANT() const throw();
operator char() const;
operator unsigned short() const;
operator unsigned long() const;
operator int() const;
operator unsigned int() const;
operator __int64() const;
operator unsigned __int64() const;
Extracts raw data from an encapsulated VARIANT. If the VARIANT is not already the proper type, VariantChangeType is used to attempt a conversion, and an error is generated upon failure:
-
operator short( ) Extracts a
shortinteger value. -
operator long( ) Extracts a
longinteger value. -
operator float( ) Extracts a
floatnumerical value. -
operator double( ) Extracts a
doubleinteger value. -
operator CY( ) Extracts a
CYobject. -
operator bool( ) Extracts a
boolvalue. -
operator DECIMAL( ) Extracts a
DECIMALvalue. -
operator BYTE( ) Extracts a
BYTEvalue. -
operator _bstr_t( ) Extracts a string, which is encapsulated in a
_bstr_tobject. -
operator IDispatch*( ) Extracts a dispinterface pointer from an encapsulated
VARIANT.AddRefis called on the resulting pointer, so it is up to you to callReleaseto free it. -
operator IUnknown*( ) Extracts a COM interface pointer from an encapsulated
VARIANT.AddRefis called on the resulting pointer, so it is up to you to callReleaseto free it.
END Microsoft Specific