IEuroDisplay::Initialize

Ee797321.c++_off(en-US,CS.10).gifEe797321.vb_on(en-US,CS.10).gif

Use this method to initialize the object with the specified alternate currency symbol, base currency symbol, alternate locale identifier, base locale identifier, and conversion rate.

Definition

HRESULT IEuroDisplay::Initialize(BSTRszBaseCurr,longlBaseLCID,BSTRszAltCurr,longlAltLCID,doubleflEuroConvRate);

Parameters

szBaseCurr

[in] A BSTR that contains the base currency symbol string.

lBaseLCID

[in] A long that contains the base locale identifier.

szAltCurr

[in] A BSTR that contains the alternate currency symbol string.

lAltLCID

[in] A long that contains the alternate locale identifier.

flEuroConvRate

[in] A double (8-byte floating point number) that contains the rate at which to convert the base currency into the alternate currency. For example, if the base currency is Swiss Francs which are exchanged at a rate of 1 SF = 0.63 Euros, and the alternate currency is Euro, then this parameter will have a value of 0.63.

Error Values

This method returns S_OK (0x00000000) to indicate success and standard COM HRESULT error values to indicate failure. For more information about standard COM errors, see Standard COM Errors. Additional information may be available using the global Err object, which can be accessed using the API function GetErrorInfo. In particular, the GetDescription method of the IErrorInfo interface may return a text description of the error.

Remarks

For more information about memory ownership issues related to COM property and method parameters, see Managing COM Parameter Memory.

See Also

EuroDisplay Object


All rights reserved.