"Saku" <[EMAIL PROTECTED]> writes:
> 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!!!
> 

This is a C question, not a GTK question - you should ask on a list
about C programming. 

In any case, your struct contains 31 items of type char, rather than 1
item of type char*. 

Try:
 struct 
 {
   char * name;
   char * street;
 } person;

But then you are going to have to figure out memory management. ;-)
Join a good list about C programming.

Havoc

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

Reply via email to