Re: gtk_combo
- From: "Mani Murugesan" <mmanim vsnl com>
- To: <gtk-app-devel-list gnome org>
- Subject: Re: gtk_combo
- Date: Mon, 10 Dec 2001 22:10:38 +0530
The same problem happened to me too. Actually the list stores the char
pointer rather than copying it. So you need to use a different char * for
every item. You can malloc() for each string or declare say, char [max]
within a loop block {} so that new memory is allocated for each item.
Mani. M
p.s
I too use GTK+ for my front end and MySQL for my back end. Going great!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]