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`


Advertisement


(Read 1 comment)

Post a comment in response:

From:
Help
Identity URL: 
Username:
Password:
Don't have an account? Create one now.
Subject:
No HTML allowed in subject
   Help
Message:

 
Notice! This user has turned on the option that logs your IP address when posting. Help
Create an Account
Forgot your login or password?
Login w/ OpenID
English • Español • Deutsch • Русский…