Re: [gtk-list] gpointer help needed




On Mon, 19 Apr 1999, Scott A. Barron wrote:
>         /* This fails to compile */
>         (struct _my_structure *)data->member;

((struct _my_structure*)data)->member;

assuming you put something else on the line, such as an assignment.

or:

typedef struct _my_structure meaningful_name;

...
meaningful_name* foo;
foo = (meaningful_name*)data;
 /* do something with foo->data */

Havoc



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