The ConvertMoney method

This method converts the money string pointed to by str into an internal representation.

mi_money ConvertMoney(const ITString &str, 
         const ITString &format = ITString::Null) const

Use the format parameter to specify the format of the internal representation. If you set format to NULL (the default), the format is determined by the environment.

If you do not specify NULL for the format, you must pass a string to format defining the format of the internal representation..

This method returns the internal representation of the money string in an mi_money structure.

If there is an error, this method returns a null mi_money value. Call ITLocale::GetError() to retrieve a specific error message.