[Gtk-sharp-list] gtk-sharp on .NET

yoros@wanadoo.es yoros@wanadoo.es
Fri, 11 Apr 2003 23:49:23 +0200


On Fri, Apr 11, 2003 at 05:27:42PM -0400, Alvaro A. Ramirez wrote:
> Hello. I have been trying to use gtk-sharp on windows, without any
> success. Mote that I am trying to use .NET platform withough cygwin. I
> installed gtk-sharp fron the windows installer found in the web page. I
> can compile, but I get a runtime exception: 
> 
> An unhandled exception of type 'System.DllNotFoundException' occurred in
> gtk-sharp.dll
> 
> Additional information: Unable to load DLL (libgtk-win32-2.0-0.dll).
> 
> I have already added references in the Visual Studio solution to
> atk-sharp.dll, gdk-sharp.dll, gli-sharp.dll, gtk-sharp.dll. However, if
> I try adding a reference tp libgtk-win32-2.0-0.dll it tells me that it
> is not a valid assembly or COM component. Therefore, I cannot added.
> Anyone experienced this before? Should I shift to sharp-develop? Any
> recommendations? 

Hello,

You are going near the right way :). You don't have to add reference for
"libgtk-win32-2.0-0.dll". You only have to reference "*-sharp.dll"
assemblies that contains all necesary for compiling.

For running applications compiled with gtk, I advise you that the
initial way is to put all the assemblies of gtk and dlls needed by your
application in the same directory that the whole application is.

You can obtain right compiled libraries from:

	"http://gtk-sharp.sourceforge.net"

There is a precompiled package for windows, I have tested it and works
well.

Regards,

    Pedro

-- 
Pedro Martinez Juliá
\  yoros@terra.es
)|    yoros@wanadoo.es
/        http://yoros.cjb.net
Socio HispaLinux #311
Usuario Linux #275438 - http://counter.li.org
GnuPG public information:  pub  1024D/74F1D3AC
Key fingerprint = 8431 7B47 D2B4 5A46 5F8E  534F 588B E285 74F1 D3AC