wow!!! You got it!!!! Just have a look to this, it's even simpler http://themonkeysgrinder.blogspot.com/2007/07/using-glib-callbacks-with-managed.html
You just have to replace the [GLib.CDeclCallback] attribute with this one [UnmanagedFunctionPointer(CallingConvention.Cdecl)] for the delegate definitions. No need to use the gapi-cdecl-insert Thank you so much!!! I think this info should placed somewhere on the gtk# proyect and the mono proyect. El mié, 18-06-2008 a las 10:50 -0500, Mike Kestner escribió: > On Wed, 2008-06-18 at 17:05 +0200, Andoni Morales Alastruey wrote: > > > I've thinking about this, and I think I don't need to do anything > > special for Windows as I don't use any glue code. Generating the > > bindings is just generating the C# code. I'll try to explain the > > situation a little bit. > > Since the issue seems to be callback related, are you doing a cdecl > delegate transformation on your assemblies for win32? We have a tool we > run during the gtk-sharp win32 build process called gapi-cdecl-insert > which converts all the CDeclCallback attributes in an assembly to the > necessary IL code for proper callback execution on the MS runtime. It's > possible you just need to run that tool on your binding assembly. > > Mike > > _______________________________________________ > Gtk-sharp-list maillist - [email protected] > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > _______________________________________________ Gtk-sharp-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
