The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
CComCurrency::operator -
This operator is used to perform subtraction on a CComCurrency object.
CComCurrency operator -( ) const;
CComCurrency operator -(
const CComCurrency & cur
) const;
- cur
A CComCurrency object.
Returns a CComCurrency object representing the result of the subtraction. In the event of an error, such as an overflow, this operator calls AtlThrow with an HRESULT describing the error.
Example
CComCurrency cur1(10, 5000), cur2; cur2 = cur1 - CComCurrency(4, 5000); ATLASSERT(cur2 == CComCurrency(6, 0));
Requirements
Header: atlcur.h
Show: