[Gtk-sharp-list] GUI hello world on Windows

Abhishek Agrawal abhi1076@yahoo.com
Thu, 18 Sep 2003 11:00:47 +0100 (BST)


--0-1557624773-1063879247=:56633
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Content-Id: 
Content-Disposition: inline

Hi All,


I am very new to Mono, gtk+ and gtk# world. I was just
start feeling gtk# on Windows. I have a c# code below
which I was able to successfully
compile on both Limux and Windows. Though it is
running without any hitch on Linux Machine, it is
giving problem on windows. Error Looks as follows:

c:\> mint HelloWorld2.cs

Unhandled Exception: System.ExecutionEngineException:
No GCHandle support built-in.

Note that I was able to run non gui Hello World C#
program on windows machine and also some gui bases c
samples for gtk with out any problem. 


HelloWorld2.cs:---------------------

using Gtk;
using GtkSharp;
using System;
 
class Hello {
 
        static void Main()
        {
                Application.Init ();
 
                Window window = new Window
("helloworld");
                window.Show();
     
                Application.Run ();
     
        }
}
------------------------------------- HelloWorld2.cs

I have installed gtk, mono and gtk# using installation
.exe files on Windows and using RPM on Linux (Gtk was
already present while I have installed Mono and GTK#
using rpm). I have installed following .exe files

1. GTK-Development-Environment-2.2.3.exe
2. GTK-Runtime-Environment-2.2.3.exe
3. gtk-sharp-0.8-win32.exe
4. mono-0.26-win32-2.exe

Please help me, as  I have got fade up googling for
this error and 
Unable to solve it myself.

Thanks in  advance for you help,

Abhishek Agrawal.

________________________________________________________________________
Want to chat instantly with your online friends?  Get the FREE Yahoo!
Messenger http://mail.messenger.yahoo.co.uk
--0-1557624773-1063879247=:56633
Content-Type: application/octet-stream; name="HelloWorld2.cs"
Content-Transfer-Encoding: base64
Content-Description: HelloWorld2.cs
Content-Disposition: attachment; filename="HelloWorld2.cs"

dXNpbmcgR3RrOwp1c2luZyBHdGtTaGFycDsKdXNpbmcgU3lzdGVtOwoKY2xh
c3MgSGVsbG8gewoKICAgICAgICBzdGF0aWMgdm9pZCBNYWluKCkKICAgICAg
ICB7CiAgICAgICAgICAgICAgICBBcHBsaWNhdGlvbi5Jbml0ICgpOwoKICAg
ICAgICAgICAgICAgIFdpbmRvdyB3aW5kb3cgPSBuZXcgV2luZG93ICgiaGVs
bG93b3JsZCIpOwogICAgICAgICAgICAgICAgd2luZG93LlNob3coKTsKICAg
IAogICAgICAgICAgICAgICAgQXBwbGljYXRpb24uUnVuICgpOwogICAgCiAg
ICAgICAgfQp9Cg==

--0-1557624773-1063879247=:56633--