Re: Question about type casting.
- From: "DC A" <adc4444 hotmail com>
- To: tristan van berkom gmail com, gtk-list gnome org
- Cc:
- Subject: Re: Question about type casting.
- Date: Sat, 08 Oct 2005 06:51:21 +0000
Yes it doesn't complain when the arguments are like this:
gtk_menu_bar_append(GTK_MENU_BAR(menu_bar), file_item);
or like this:
gtk_menu_bar_append(menu_bar, file_item);
But when i use the following line compiler complains:
gtk_menu_bar_append(GTK_MENU_BAR(menu_bar), GTK_MENU_ITEM(file_item));
Why's compiler complaining? Is there any way to know when to use type
casting and when not to for arguments of macro? Do i have to
write-compile-run each time in order to know which combination works
correctly? Or is there a better way to know for sure?
Thanks for your time.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]