CComCurrency::operator 貨幣

這些運算子是用來轉換為 貨幣 資料型別的 CComCurrency 物件。

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

傳回值

傳回 貨幣 物件的參考。

範例

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

需求

Header: atlcur.h

請參閱

參考

CComCurrency 類別