CComVariant::CComVariant

This constructor constructs a CComVariant object.

At a Glance

Header file: Atlbase.h
Windows CE versions: 2.0 and later
Complete documentation: Visual C++ documentation

Syntax

CComVariant( );
CComVariant( const CComVariant&
varSrc);
CComVariant( const VARIANT& varSrc);
CComVariant( LPCOLESTR
lpsz );
CComVariant( LPCSTR
lpsz );
CComVariant( BSTR
bstrSrc );
CComVariant( bool
bSrc );
CComVariant( int
nSrc );
CComVariant( BYTE
nSrc );
CComVariant( short
nSrc );
CComVariant( long
nSrc, VARTYPE vtSrc = VT_I4 );
CComVariant( float
fltSrc );
CComVariant( double
dblSrc );
CComVariant( CY
cySrc );
CComVariant( IDispatch*
pSrc );
CComVariant( IUnknown*
pSrc );

See Also

VARIANT, VARTYPE