Constructs a COleCurrency object.
COleCurrency( ); COleCurrency( CURRENCY cySrc ); COleCurrency( const COleCurrency& curSrc ); COleCurrency( const VARIANT& varSrc ); COleCurrency( long nUnits, long nFractionalUnits );
All of these constructors create new COleCurrency objects initialized to the specified value. A brief description of each of these constructors follows. Unless otherwise noted, the status of the new COleCurrency item is set to valid.
COleCurrency( ) Constructs a COleCurrency object initialized to 0 (zero).
COleCurrency( cySrc ) Constructs a COleCurrency object from a CURRENCY value.
COleCurrency( curSrc ) Constructs a COleCurrency object from an existing COleCurrency object. The new object has the same status as the source object.
COleCurrency( varSrc ) Constructs a COleCurrency object. Attempts 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 value of the COleCurrency object is set to zero (0) and its status to invalid.
COleCurrency( nUnits, nFractionalUnits ) Constructs a COleCurrency object from the specified numerical components. If the absolute value of the fractional part is greater than 10,000, the appropriate adjustment is made to the units. Note that the units and fractional part are specified by signed long values.