[omniORB] The struct_var problem !

Carlos carlos@solaria-mediterranea.com
Fri, 20 Jul 2001 09:13:44 +0200


ZDX NARI wrote:
>=20
> Hello, everyone!
>=20
>     The idl file is :
>            struct TimeOfDay{
>                 short hour;
>                 short minute;
>                 short second;
>             };
>            interface Time{
>                 TimeOfDay get_gmt();
>             };
>=20
>      In my clinet :
>                 Time_var tm =3D ...  // Get reference
>                   TimeOfDay_var td =3D tm->get_gmt();
>                 ... ...
>       When I compile it , it gives the error message : conversion from
> 'TimeOfDay' to non_scalar type'_CORBA_ConstrType_Fix_var<TimeOfDay>'
> request.
>       I think that "TimeOfDay_var td =3D tm->get_gmt();" is nothing wro=
ng.
> I'm wrong ?
>=20
> Best regards !
> ---
> zdx_nari<zdx_nari@hotmail.com>
>=20
> _________________________________________________________________
> =C4=FA=BF=C9=D2=D4=D4=DA MSN Hotmail =D5=BE=B5=E3 http://www.hotmail.co=
m/cn =C3=E2=B7=D1=CA=D5=B7=A2=B5=E7=D7=D3=D3=CA=BC=FE

Try with:
         TimeofDay td =3D tm->get_gmt ();

Bye.
Carlos Gomez Romero

Solaria Mediterranea, S.L.L.
Benidorm (Espa=F1a)