Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

CComCurrency Members 

Methods

CComCurrency

The constructor for a CComCurrency object.

GetCurrencyPtr

Returns the address of an m_currency data member.

GetFraction

Call this method to return the fractional component of a CComCurrency object.

GetInteger

Call this method to return the integer component of a CComCurrency object.

Round

Call this method to round a CComCurrency object to the nearest integer value.

SetFraction

Call this method to set the fractional component of a CComCurrency object.

SetInteger

Call this method to set the integer component of a CComCurrency object.

Operators

operator !=

Compares two CComCurrency objects for inequality.

operator *

This operator is used to perform multiplication on a CComCurrency object.

operator *=

This operator is used to perform multiplication on a CComCurrency object and assign it the result.

operator +

This operator is used to perform addition on a CComCurrency object.

operator +=

This operator is used to perform addition on a CComCurrency object and assign the result to the current object.

operator -

This operator is used to perform subtraction on a CComCurrency object.

operator -=

This operator is used to perform subtraction on a CComCurrency object and assign it the result.

operator /

This operator is used to perform division on a CComCurrency object.

operator /=

This operator is used to perform division on a CComCurrency object and assign it the result.

operator =

This operator assigns the CComCurrency object to a new value.

operator ==

This operator compares two CComCurrency objects for equality.

operator >

This operator compares two CComCurrency objects to determine the larger.

operator >=

This operator compares two CComCurrency objects to determine equality or the larger.

operator <

This operator compares two CComCurrency objects to determine the lesser.

operator <=

This operator compares two CComCurrency objects to determine equality or the lesser.

operator CURRENCY

Casts a CURRENCY object.

Data Members

m_currency

The CURRENCY variable created by your class instance.

See Also

Community Additions

ADD
Show:
© 2015 Microsoft