Andrew Culver ([info]prezninja) wrote,
@ 2004-11-18 19:59:00
Previous Entry  Add to memories!  Tell a Friend  Next Entry
Current music:DI.fm Trance (96 kbps)

Thanks to Muntyan.
A big kudos to Muntyan from #gtk+ on irc.gnome.org.

If you're having trouble getting GTK+/libglade on Win32 to recognize your callback functions, this is the trick:

#define EXPORT __declspec(dllexport)

EXPORT void on_button1_clicked(GtkWidget *widget, gpointer user_data) {

  /* do something useful here */
  g_print("Thank you Muntyan.\n");

}


This should be better documented, so hopefully I'll update with more details later.

Compiler options should be:
-mms-bitfields -export-dynamic `pkg-config --cflags --libs gtk+-2.0 libglade-2.0`



(1 comment) - (Post a new comment)

sonofgod
(Anonymous)
2005-03-21 02:07 pm UTC (link)
rock-on

(Reply to this)


(1 comment) - (Post a new comment)

Create an Account
Forgot your login or password?
Login w/ OpenID
English • Español • Deutsch • Русский…