Re: Sending a struct to a bonobo object
Martin Kretzschmar <[email protected]> 25 Jul 2003 13:01:19 +0200
| Newsgroups | gmane.comp.gnome.components |
|---|---|
| Message-ID | <1059130879.2716.13.camel@localhost> |
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 HTH, Martin