Previous Table of Contents Next


18.3.5 Mapping for Structure Types


   Support for structures in Microsoft IDL and ODL maps bidirectionally to OMG IDL. Each structure member is mapped according to the mapping rules for that data type. The structure definition in Microsoft IDL or ODL is as follows.

   // Microsoft IDL and ODL typedef ... T0; typedef ... Tl; ... typedef ...TN; typedef struct

   {T0 m0;Tl ml;...TN mN;} STRUCTURE;

   The structure has an equivalent mapping in OMG IDL, as follows:

   // OMG IDL typedef ... T0 typedef ... T1; ... typedef ... TN; struct STRUCTURE

   {T0 m0;T1 ml;...Tn mm;};