_variant_t Extractors
Microsoft Specific
operator short( ) const throw( _com_error );
operator long( ) const throw( _com_error);
operator float( ) const throw( _com_error );
operator double( ) const throw( _com_error );
operator CY( ) const throw( _com_error );
operator bool( ) const throw( _com_error );
operator DECIMAL( ) const throw( _com_error );
operator BYTE( ) const throw( _com_error );
operator _bstr_t( ) const throw( _com_error );
operator IDispatch*( ) const throw( _com_error );
operator IUnknown*( ) const throw( _com_error );
Remarks
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 short integer value.
operator long( ) Extracts a long integer value.
operator float( ) Extracts a float numerical value.
operator double( ) Extracts a double integer value.
operator CY( ) Extracts a CY object.
operator bool( ) Extracts a bool value.
operator DECIMAL( ) Extracts a DECIMAL value.
operator BYTE( ) Extracts a BYTE value.
operator _bstr_t( ) Extracts a string, which is encapsulated in a _bstr_t object.
operator IDispatch*( ) Extracts a dispinterface pointer from an encapsulated VARIANT. AddRef is called on the resulting pointer, so it is up to you to call Release to free it.
operator IUnknown*( ) Extracts a COM interface pointer from an encapsulated VARIANT. AddRef is called on the resulting pointer, so it is up to you to call Release to free it.
END Microsoft Specific