COleVariant::COleVariant

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

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

At a Glance

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

See Also

COleVariant Overview, COleVariant Member Functions, Automation Types, COleVariant::operator =, CByteArray, CLongBinary, COleCurrency, COleDateTime, CString, VARIANT, VARTYPE