[Mono-devel-list] simple graphical application

arnaud denoual arnaud.denoual at emn.fr
Thu Aug 14 04:00:15 EDT 2003


Hello, thank you for your help.

The compilation step work but when I want to run my application (mono 
my_app.exe) I have this kind of error :

** (my_app.exe:9849): WARNING **: Failed to load library 
libuser32.dll.so (user32.dll): libuser32.dll.so: cannot open shared 
object file: No such file or directory
(...
idem with these libraries : kernel32.dll, gdi32.dll, uxtheme.dll, 
shell32.dll, comctl32.dll
...)
Unhandled Exception: System.TypeInitializationException: An exception 
was thrown by the type initializer for System.Windows.Forms.Control ---> 
System.MissingMethodException: A missing method exception has occurred.
in <0x00046> 06 System.Windows.Forms.Win32:RegisterWindowMessage (string)
in <0x000c4> 00 System.Windows.Forms.Control:.cctor ()
--- End of inner exception stack trace ---

Have you got any ideas ?

Thanks, Arnaud.


 >Salut!
 >
 >On Wed, 2003-08-13 at 13:23, arnaud denoual wrote:
 >> Hello,
 >>
 >> I try to create a simple graphical application in C# with mono, using
 >> System.Drawing.Drawing2D and System.Winfows.Forms.
 >> But when I compile, the compilator d'ont find theses namespaces.
 >>
 >> How I can build these namespaces ?
 >> Is it possible under mono to run this kind of application ?
 >
 >You need to reference these assemblies. You can do that by adding:
 >
 >/r: System.Drawing.dll
 >
 >to your mcs command for compiling your app.
 >
 >Bear in mind that our System.Windows.Forms and System.Drawing API are
 >still in heavy development. Your app may, or may not, work with Mono. If
 >it does work, that'd be awesome and please let us know; if not, it would
 >be awesome if you could help us by contributing the missing pieces.
 >
 >Happy hacking!
 >
 >Duncan.




More information about the Mono-devel-list mailing list