Saku wrote:
> 
> 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!!!
> 
> Why????
> Goodbye!
Whaa .. gtk_entry_get_text returns a pointer not an array of char !!!! 
please use ..
g_strndup(name,31,gtk_entry ...)
where name is a pointer ..

MfG 
Andreas Scherf

[EMAIL PROTECTED]
[EMAIL PROTECTED]             
http://www.fh-trier.de/~scherfa

"It said uses Windows 98 or better, so I loaded Linux!"

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

Reply via email to