Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio .NET
Visual C++
Reference
ATL Reference
ATL Classes
CComVariant Class

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2003/.NET Framework 1.1

Other versions are also available for the following:
ATL Library Reference
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 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

Class Members | ATL Class Overview

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker