Re: Sending a struct to a bonobo object
- From: Martin Kretzschmar <m_kretzschmar gmx net>
- To: Andrew Sobala <aes gnome org>
- Cc: Bonobo <gnome-components-list gnome org>
- Subject: Re: Sending a struct to a bonobo object
- Date: 25 Jul 2003 13:01:19 +0200
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]