CComCurrency::operator =
Questo operatore assegna l'oggetto CComCurrency a un nuovo valore.
const CComCurrency & operator =(
const CComCurrency & curSrc
) throw( );
const CComCurrency & operator =(
CURRENCY cySrc
) throw( );
const CComCurrency & operator =(
FLOAT fSrc
);
const CComCurrency & operator =(
SHORT sSrc
);
const CComCurrency & operator =(
LONG lSrc
);
const CComCurrency & operator =(
BYTE bSrc
);
const CComCurrency & operator =(
USHORT usSrc
);
const CComCurrency & operator =(
DOUBLE dSrc
);
const CComCurrency & operator =(
CHAR cSrc
);
const CComCurrency & operator =(
ULONG ulSrc
);
const CComCurrency & operator =(
DECIMAL dSrc
);
Parametri
curSrc
Un oggetto CComCurrency .cySrc
Una variabile di tipo CURRENCY.sSrc, fSrc, lSrc, bSrc, usSrc, dSrc, cSrc, ulSrc, dSrc
Il valore numerico da assegnare a CComCurrency l'oggetto.
Valore restituito
Restituisce l'oggetto aggiornato CComCurrency. In caso di errore, ad esempio un overflow, questo operatore chiama AtlThrow con un HRESULT che descrive l'errore.
Esempio
CComCurrency cur1, cur2(10, 5000);
CURRENCY cy;
// Copying one object to another
cur1 = cur2;
// Using the CURRENCY data type
cy.int64 = 105000;
cur1 = cy;
ATLASSERT(cur1 == cur2);
Requisiti
Header: atlcur.h