Re: gtk_entry_get_text() - having problems with return type
- From: Sven Neumann <sven gimp org>
- To: "Ben LeMasurier" <uidzer0 hotmail com>
- Cc: gtk-list gnome org
- Subject: Re: gtk_entry_get_text() - having problems with return type
- Date: 05 Mar 2003 11:48:30 +0100
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]