Microsoft 专用
从封装的 VARIANT 对象中提取数据。
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;
备注
从封装的 VARIANT 中提取原始数据。 如果 VARIANT 还不是正确的类型,则使用 VariantChangeType 尝试转换,并在失败时生成错误:
operator short( ) 提取 short 整数值。
operator long( ) 提取 long 整数值。
operator float( ) 提取 float 数字值。
operator double( ) 提取 double 整数值。
operator CY( ) 提取 CY 对象。
operator bool( ) 提取 bool 值。
operator DECIMAL( ) 提取 DECIMAL 值。
operator BYTE( ) 提取 BYTE 值。
operator _bstr_t( ) 提取封装在 _bstr_t 对象中的字符串。
operator IDispatch*( ) 从封装的 VARIANT 提取调度接口指针。 将对生成的指针调用 AddRef,因此由您决定是否调用 Release 来释放它。
operator IUnknown*( ) 从封装的 VARIANT 提取 COM 接口指针。 将对生成的指针调用 AddRef,因此由您决定是否调用 Release 来释放它。
结束 Microsoft 专用