CComVariant::CComVariant

The CComVariant constructor.

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 );

At a Glance

Header file: atlbase.h
Platforms:
Versions: 2.0 and later
Complete documentation: Visual C++ documentation

See Also

CComVariant Overview, CComVariant Methods, VARIANT, VARTYPE