Re: Sending a struct to a bonobo object



On Fri, 2003-07-25 at 12:01, Martin Kretzschmar wrote:
> Hi Andrew,
> 
> answering the easy part
> 
> Am Mon, 2003-07-21 um 21.05 schrieb Andrew Sobala:
> > I've implemented my first bonobo object that accepts an argument in the
> > form of a struct defined in the IDL file. How do I pass that to the
> > bonobo control I obtained from bonobo_get_object ? If I g_malloc the
> > struct, and pass a pointer to the stub of the method, it crashes.
> > Presumably I'm doing something wrong :-)
> 
> You want to use T *T__alloc () where T is the type of your struct (its
> name in C) and CORBA_free to free it.
> 
> You can get the CORBA C Language Mapping Spec at
> http://www.omg.org/technology/documents/formal/c_language_mapping.htm

Thanks, Martin. I'm learning slowly :-)

-- 
Andrew Sobala <aes gnome org>

The lighting designer is expected to be a master of art, science,
history, psychology, communications, politics and sometimes even
mind reading. -- Stage Lighting Design 101





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]