[Gtk-sharp-list] [Newbie] DLL Load Exception

Alessandro Lendaro alendaro1@virgilio.it
Wed, 18 Feb 2004 15:03:27 +0100


I wrote these lines of code to test the GTK#
on Windows 2000 Server with both Framework versions installed (no mono).

            try
            {
                Window win = new Window(WindowType.Toplevel);
                win.Activate();
                win.Show();
            }
            catch (Exception exc)
            {
                Console.WriteLine(exc.Message);
            }
            finally
            {
                Console.ReadLine();
            }


The Exception thrown when the first line executes is:

[System.DllNotFoundException]    {"Impossibile caricare la DLL 
(libgtk-win32-2.0-0.dll)." }    System.DllNotFoundException


I mad a key in the registry with the path of my executable and a Path 
definition of the GTK\bin directory,
but it doesn't seem to work.

Thanks to who' ll be able to help me.