Use these constructors to construct a COleCurrency object.
The default constructor initializes the new COleCurrency object to zero.
Use the copy constructor to construct a COleCurrency object from an existing COleCurrency object.
Use COleCurrency ( cySrc ) to construct a COleCurrency object from a CURRENCY value.
Use COleCurrency ( varSrc ) to convert a VARIANT structure or COleVariant object to a currency (VT_CY) value. If this conversion is successful, the converted value is copied into the new COleCurrency object. If it is not, the new COleCurrency object is initialized to zero.
Use COleCurrency (nUnits ,nFractionalUnits ) to construct a COleCurrency object initialized to the specified numerical values.
COleCurrency( );
COleCurrency( const COleCurrency& curSrc );
COleCurrency( CURRENCY cySrc );
COleCurrency( const VARIANT& varSrc );
COleCurrency( long nUnits, long nFractionalUnits );
Header file: | Afxdisp.h |
Platforms: | |
Versions: | 2.0 and later |
Complete documentation: | Visual C++ documentation |
COleCurrency Overview, COleCurrency Member Functions, Automation Types, COleCurrency::SetCurrency, COleCurrency::operator =, COleCurrency::GetStatus, COleCurrency::m_cur, COleCurrency::m_status, CURRENCY, VARIANT