[Mono-list] Some general advice for a newbie, please

peter apvx95@dsl.pipex.com
Thu, 30 Dec 2004 23:04:46 +0000

Following some of the kind advice I've had, I tried the following (from 
the Borland site except that I've done it in monodevelop and added 
references to System.Windows.Forms and System.Drawing.

using System;
using System.Windows.Forms;
using System.Drawing;

class HelloWindowsForms {
    static void Main() {
        MessageBox.Show("Welcome to the Bill-free zone!");

This appears to compile OK, but when I try to run it from the IDE, I get:

Could not load winelib.exe.so
Unhandled Exception: System.TypeInitializationException: An exception 
was thrown by the type initializer for System.Windows.Forms.Win32 ---> 
System.DllNotFoundException: winelib.exe.so
in <0x00053> (wrapper managed-to-native) 
System.Windows.Forms.Win32:WineLoadLibrary (string)
in [0x0014b] (at 
System.Windows.Forms.Win32:.cctor ()
--- End of inner exception stack trace ---

in (unmanaged) System.Windows.Forms.MessageBox:Show (string)
in [0x00011] (at 
System.Windows.Forms.MessageBox:Show (string)
in [0x00005] (at 
HelloWindowsForms:Main ()

press any key to continue...

Can anyone help?