Export (0) Print
Expand All

CComVariant Class

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

class CComVariant : public tagVARIANT

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.

Header: atlcomcli.h

Community Additions

ADD
Show:
© 2014 Microsoft