[Gtk-sharp-list] Databindig IList to a Gtk.TreeView

Michael Hutchinson m.j.hutchinson at gmail.com
Sun Apr 23 19:35:52 EDT 2006


On 4/23/06, Philip Van Hoof <spam at pvanhoof.be> wrote:
> I hardcoded the library locations because I don't really understand that
> Mono trick you have to do to translate Win32 DLL locations to UNIX so
> file locations.
>
> I improved it a little bit. Except that I've left the .so extension and
> the "-x11" thingy of gtk+ in tact.
>
> Some guy who's experienced in P/Invoke should really or document it or
> create me such a config file that will work everywhere ;-). I'm happy to
> accept both patches and commits for the experiment.

It's a DllMap: http://www.mono-project.com/DllMap

In the DllImport attribute in P/Invoke you use the Windows library
filename, then the dllmap in your assembly's .config file maps this to
a Unix library name. The assembly will then run on both Windows and
Unix with only a config file change.

I don't really use Windows any more, so I cant help much more than that.


Michael


More information about the Gtk-sharp-list mailing list