Export (0) Print
Expand All
1 out of 17 rated this helpful - Rate this topic

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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.