Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
These overloaded assignment operators copy the source value into this COleVariant object.
const COleVariant& operator =(
const VARIANT& varSrc
);
const COleVariant& operator =(
LPCVARIANT pSrc
);
const COleVariant& operator =(
const COleVariant& varSrc
);
const COleVariant& operator =(
const LPCTSTR lpszSrc
);
const COleVariant& operator =(
const CString& strSrc
);
const COleVariant& operator =(
BYTE nSrc
);
const COleVariant& operator =(
short nSrc
);
const COleVariant& operator =(
long lSrc
);
const COleVariant& operator =(
const COleCurrency& curSrc
);
const COleVariant& operator =(
float fltSrc
);
const COleVariant& operator =(
double dblSrc
);
const COleVariant& operator =(
const COleDateTime& dateSrc
);
const COleVariant& operator =(
const CByteArray& arrSrc
);
const COleVariant& operator =(
const CLongBinary& lbSrc
);
Remarks
A brief description of each operator follows:
operator =( varSrc ) Copies an existing VARIANT or COleVariant object into this object.
operator =( pSrc ) Copies the VARIANT object accessed by pSrc into this object.
operator =( lpszSrc ) Copies a null-terminated string into this object and sets the VARTYPE to VT_BSTR.
operator =( strSrc ) Copies a CString object into this object and sets the VARTYPE to VT_BSTR.
operator =( nSrc ) Copies an 8- or 16-bit integer value into this object. If nSrc is an 8-bit value, the VARTYPE of this is set to VT_UI1. If nSrc is a 16-bit value and the VARTYPE of this is VT_BOOL, it is kept; otherwise, it is set to VT_I2.
operator =( lSrc ) Copies a 32-bit integer value into this object. If the VARTYPE of this is VT_ERROR, it is kept; otherwise, it is set to VT_I4.
operator =( curSrc ) Copies a COleCurrency object into this object and sets the VARTYPE to VT_CY.
operator =( fltSrc ) Copies a 32-bit floating-point value into this object and sets the VARTYPE to VT_R4.
operator =( dblSrc ) Copies a 64-bit floating-point value into this object and sets the VARTYPE to VT_R8.
operator =( dateSrc ) Copies a COleDateTime object into this object and sets the VARTYPE to VT_DATE.
operator =( arrSrc ) Copies a CByteArray object into this COleVariant object.
operator =( lbSrc ) Copies a CLongBinary object into this COleVariant object.
For more information, see the VARIANT and VARTYPE entries in the Windows SDK.
Requirements
Header: afxdisp.h