Re: gtk_combo



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]