[Mono-list] GTK#/Windows

Serge serge@wildwestsoftware.com
Wed, 17 Jul 2002 15:51:50 +0300

Hello there,

I'm not following GTK# development closely, but it was mentioned several times on this list and elsewhere
(e.g. on Phonic's page http://www.atoker.com/phonic/) that GTK# doesn't work under Windows/.NET
Framework because of some P/Invoke issues.
Out of curiosity I've just built GTK# on windows, replacing hardcoded library names with those of Win32
GTK+ DLLs available from http://www.gimp.org/~tml/gimp/win32/ and all included samples (Button,
Menu, Hello-World) work just fine.
The only problem I noticed is that GTK# relies on the default calling convention (winapi/stdcall) for DllImport,
which is incorrect (should be cdecl) - but it works fine nonetheless (it's "safe" to call cdecl functions in stdcall way).
What else I am missing?