In message <002601bfc188$64a4d3e0$0100000a@fulmine>you write:
>Hi i'm an italian developer and i wish know where is the error in this code:
>____________________________________________________
>struct
>{
>char name[31];
>char street[31];
>}
>person;
>
>void on_btnadd_clicked (GtkButton *button, gpointer user_data)
>{  
>openfile();
>person.name = gtk_entry_get_text(GTK_ENTRY(txtname));
>_______________________________________________
>
>It give me an error:
>
>Incompatible data type assignment!!!

person.name is a 32 element array of char.
gtk_entry_get_text() returns a pointer to char.

If the difference between these two is unclear to you, you need to
study C more. I always liked "A Book on C" but I don't know if its
still in print.

--p

-- 
To unsubscribe: mail -s unsubscribe [EMAIL PROTECTED] < /dev/null

Reply via email to