CComCurrency::operator CURRENCY

These operators are used to cast a CComCurrency object to a CURRENCY data type.

operator CURRENCY&( ) throw( ); 
operator const CURRENCY&( ) const throw( );

Return Value

Returns a reference to a CURRENCY object.

Example

CComCurrency cur(10, 5000);
CURRENCY cy = static_cast<CURRENCY>(cur); // Note that explicit cast is not necessary
ATLASSERT(cy.int64 == 105000);

Requirements

Header: atlcur.h

See Also

Reference

CComCurrency Class