COleVariant::COleVariant

These overloaded constructors construct a new COleVariant object, initialized to the specified value.

At a Glance

Header file: Afxdisp.h
Platforms: H/PC 2.0, H/PC Pro
Windows CE versions: 2.0 and later
Complete documentation: Visual C++ documentation

Syntax

COleVariant( );

COleVariant( const VARIANT& varSrc );

COleVariant( const COleVariant& varSrc );

COleVariant( LPCVARIANT pSrc );

COleVariant( LPCTSTR lpszSrc );

COleVariant( LPCTSTR lpszSrc, VARTYPE vtSrc );

COleVariant( CString& strSrc );

COleVariant( BYTE nSrc );

COleVariant( short nSrc, VARTYPE vtSrc = VT_I2 );

COleVariant( long lSrc, VARTYPE vtSrc = VT_I4 );

COleVariant( const COleCurrency& curSrc );

COleVariant( float fltSrc );

COleVariant( double dblSrc );

COleVariant( const COleDateTime& dateSrc );

COleVariant( const CByteArray& arrSrc );

COleVariant( const CLongBinary& lbSrc );

See Also

COleVariant::operator =, CByteArray, CLongBinary, COleCurrency, COleDateTime, CString, VARIANT, VARTYPE