Previous Table of Contents Next


19.9.9 Special Cases of Data Type Conversion


   19.9.9.1 Translating COM::Currency to Automation CURRENCY

   If the supplied COM::Currency value does not translate to a meaningful Automation CURRENCY value, then the CORBA View should raise the CORBA System Exception DATA_CONVERSION.

   19.9.9.2 Translating CORBA double to Automation DATE

   If the CORBA double value is negative or converts to an impossible date, then the CORBA View should raise the CORBA System Exception DATA_CONVERSION.

   19.9.9.3 Translating CORBA boolean to Automation boolean and Automation boolean to CORBA boolean

   True and false values for CORBA boolean are, respectively, one and zero. True and false values for Automation boolean are, respectively, negative one (-1) and zero. Therefore, true values need to be adjusted accordingly.