Re: gtk_entry_get_text() - having problems with return type



Hi,

"Ben LeMasurier" <uidzer0 hotmail com> writes:

> i am trying to take the contents of of text entry and push them into
> gethostbyname(), when I do this I get the error:
> 
> warning: assignment makes pointer from integer without a cast
> 
> gethostbyname() requests a char *
> and gtk_entry_get_text() returns G_CONST_RETURN gchar*
> 
> How do I cast this? or do whatever it is so it takes the variable?

this should work out of the box. You better show us your code since
its likely that you are not doing things the way you told us. Are you
at all sure that the warning comes from this particular assignment?


Salut, Sven



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]