Compartir a través de


CComVariant Class

This class wraps the VARIANT type, providing a member indicating the type of data stored.

class CComVariant : public tagVARIANT

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.

Requirements

Header: atlcomcli.h

See Also

Other Resources

CComVariant Members

ATL Class Overview