CComVariant Class
This class wraps the VARIANT type, providing a member indicating the type of data stored.
class CComVariant : public tagVARIANT
Members
Public Constructors
Name |
Description |
---|---|
The constructor. |
|
The destructor. |
Public Methods
Name |
Description |
---|---|
Attaches a VARIANT to the CComVariant object. |
|
Converts the CComVariant object to a new type. |
|
Clears the CComVariant object. |
|
Copies a VARIANT to the CComVariant object. |
|
Copies the contents of the CComVariant object. |
|
Detaches the underlying VARIANT from the CComVariant object. |
|
Returns the size in number of bytes of the contents of the CComVariant object. |
|
Loads a VARIANT from a stream. |
|
Initializes the CComVariant object and sets the vt member to VT_BYREF. |
|
Saves the underlying VARIANT to a stream. |
Public Operators
Indicates whether the CComVariant object is less than the specified VARIANT. |
|
Indicates whether the CComVariant object is greater than the specified VARIANT. |
|
Indicates whether the CComVariant object does not equal the specified VARIANT. |
|
Assigns a value to the CComVariant object. |
|
Indicates whether the CComVariant object equals the specified VARIANT. |
Remarks
CComVariant wraps the VARIANT and VARIANTARG type, which consists of a union and a member indicating the type of the data stored in the union. VARIANTs are typically used in Automation.
CComVariant derives from the VARIANT type so it can be used wherever a VARIANT can be used. You can, for example, use the V_VT macro to extract the type of a CComVariant or you can access the vt member directly just as you can with a VARIANT.
Inheritance Hierarchy
tagVARIANT
CComVariant
Requirements
Header: atlcomcli.h