[Gtk-sharp-list] Windows gtk# Help

Herbert M Sauro firefly@fssc.demon.co.uk
Sat, 20 Mar 2004 19:14:01 -0800

Could someone describe to me their setup for gtk# under Windows. I've got
Mono 0.31 and gtk# 0.17 installed. Also I've installed GTK 2.0. All I am
trying to do is to get the following simple application to run:

using Gtk;
using GtkSharp;
using System;

class Hello {

        static void Main()
             Application.Init ();

             Window window = new Window ("helloworld");

             Application.Run ();

It compiles ok but when I run it I get the following exception:

Unhandled Exception: System.DllNotFoundException: libgtk-win32-2.0-0.dll
in <0x0004a> (wrapper managed-to-native) Gtk.Application:gtk_init
in <0x00027> Gtk.Application:Init ()
in <0x0000e> Hello:Main ()

I presume I run the program by typing mono app.exe  ??

I've even copied the offending dll (libgtk-win32-2.0-0.dll) to the same
directory as Main.exe and it still can't find it. I've search google and
these lists for clues but I'm stumped.

Herbert Sauro