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 );
Parameters
varSrc
An existing COleVariant or VARIANT object to be copied into the new COleVariant object.
pSrc
A pointer to a VARIANT object that will be copied into the new COleVariant object.
lpszSrc
A null-terminated string to be copied into the new COleVariant object.
vtSrc
The VARTYPE for the new COleVariant object.
strSrc
A CString object to be copied into the new COleVariant object.
nSrc, lSrc
A numerical value to be copied into the new COleVariant object.
vtSrc
The VARTYPE for the new COleVariant object.
curSrc
A COleCurrency object to be copied into the new COleVariant object.
fltSrc, dblSrc
A numerical value to be copied into the new COleVariant object.
dateSrc
A COleDateTime object to be copied into the new COleVariant object.
arrSrc
A CByteArray object to be copied into the new COleVariant object.
lbSrc
A CLongBinary object to be copied into the new COleVariant object.
Remarks
All of these constructors create new COleVariant objects initialized to the specified value. A brief description of each of these constructors follows.
For more information, see the VARIANT and VARTYPE entries in the Platform SDK.
For more information on SCODE, see Structure of COM Error Codes in the Platform SDK.
COleVariant Overview | Class Members | Hierarchy Chart
See Also COleVariant::operator =, CString, COleCurrency, COleDateTime