[omniORB] Struct as type

Nitya Monteiro nityam@ascom-odf.com
Mon, 2 Jul 2001 16:08:14 +0530



> Hi Jonas ...
>
> We are novice programmers in CORBA.
> But the problem could be this ..
> Just change the idl ...
> interface{
>
>  struct object{
>
>       char  a[30];
>       long b;
>  }
>
>       typedef object object_type[50]; // changed here ... if this is what
u
> intend to do ..:-)
>
>       long object_list(in long index, in object_type list); // changed
here
>
>  }
>
>
>
> ----- Original Message -----
> From: Jonas Reimers <jonas.reimers@se.transport.bombardier.com>
> To: <omniorb-list@uk.research.att.com>
> Sent: Monday, July 02, 2001 3:12 PM
> Subject: [omniORB] Struct as type
>
>
> > -
> > Hello again!
> >
> > In my IDL I tries to write as follows:
> >
> > interface{
> >
> > struct object{
> >
> >      char  a[30];
> >      long b;
> > }
> >
> >      typedef object object_type;
> >
> >      long object_list(in long index, in object_type list[50]);
> >
> > }
> >
> > but when running omniidl I gets compiling error!! Guess that that is the
> in
> > object_type list[50]  that causes trhe error but why?  What shall I do
> instead?
> >
> > best regards
> >
> > /Jonas R
> >
> >
>