[Mono-list] Running Windows.Forms app under mono?

John Sohn jsohn@columbus.rr.com
03 Feb 2003 22:25:09 -0500


Please look at the README in the mcs/class/System.Windows.Forms
directory. You will need to use the monostub WineLib application to
start your Windows.Forms application, make some changes to the
etc/mono/config file, and build Mono with garbage collection disabled. I
just checked in some changes recently to run with the latest Mono and
Wine releases.

I have to warn you though at this point there is still a lot of work to
do in the System.Windows.Forms namespace.

John

On Mon, 2003-02-03 at 19:50, Robert A. Wlodarczyk wrote:
> Hi,
>=20
> I have a fresh installation of RedHat 8.0 with the latest build of mono a=
nd
> wine installed. I also have Windows 2000 installed on drive c, and have
> setup both wine and mono correctly. I have a simple .net forms test app t=
hat
> I'd like to run under mono. I have tried a number of things, but seem to =
be
> pulling me hair out at this stage.
>=20
> 1) Tried 'wine mono SimpleWindow.exe' =3D=3D> returned "wine: cannot find
> 'mono'"
> 2) Tried mono SimpleWindow.exe =3D=3D> returned (just a small snippet of =
the
> errors=C2=85 I=C2=92ve removed a lot of lines since they kept repeating.)
> ** (SimpleWindow.exe:1530): WARNING **: Failed to load library
> libcomctl32.dll.so (comctl32.dll): libcomctl32.dll.so: cannot open shared
> object file: No such file or directory=20
>=20
> ** (SimpleWindow.exe:1530): WARNING **: Failed to load library
> libuser32.dll.so (user32.dll): libuser32.dll.so: cannot open shared objec=
t
> file: No such file or directory
>=20
> ** (SimpleWindow.exe:1530): WARNING **: Failed to load library
> libkernel32.dll.so (kernel32.dll): libkernel32.dll.so: cannot open shared
> object file: No such file or directory
>=20
> Unhandled Exception: System.MissingMethodException: A missing method
> exception has occurred. in <0x00046> 06
> System.Windows.Forms.Win32:RegisterClass (System.Windows.Forms.WNDCLASS&)=
 in
> <0x00127> 00 System.Windows.Forms.ScrollableControl:get_CreateParams () i=
n
> <0x00012> 00 System.Windows.Forms.ContainerControl:get_CreateParams () in
> <0x00012> 00 System.Windows.Forms.Form:get_CreateParams () in <0x00062> 0=
0
> System.Windows.Forms.Control:CreateHandle () in <0x00012> 00
> System.Windows.Forms.Form:CreateHandle () in <0x003db> 00
> System.Windows.Forms.Control:.ctor () in <0x00015> 00
> System.Windows.Forms.ScrollableControl:.ctor () in <0x00014> 00
> System.Windows.Forms.ContainerControl:.ctor () in <0x00043> 00
> System.Windows.Forms.Form:.ctor () in <0x00043> 00
> SimpleWindow.frmMain:.ctor () in <0x00024> 00 SimpleWindow.frmMain:Main (=
)
> 3) Looked at my /etc/mono/config file and it's like this: <configuration>
>         <dllmap dll=3D"cygwin1.dll" target=3D"libc.so.6" />
>         <dllmap dll=3D"libc" target=3D"libc.so.6" />
>         <dllmap dll=3D"libxslt.dll" target=3D"libxslt.so" />
>         <dllmap dll=3D"libmySQL.dll" target=3D"libmysqlclient.so" />
>         <dllmap dll=3D"odbc32.dll" target=3D"libodbc.so" />
>         <dllmap dll=3D"libglib-2.0-0.dll" target=3D"libglib-2.0.so" />
>         <dllmap dll=3D"libgobject-2.0-0.dll" target=3D"libgobject-2.0.so"=
 />
>         <dllmap dll=3D"libpango-1.0-0.dll" target=3D"libpango-1.0.so" />
>         <dllmap dll=3D"libatk-1.0-0.dll" target=3D"libatk-1.0.so" />
>         <dllmap dll=3D"libgdk-win32-2.0-0.dll" target=3D"libgdk-x11-2.0.s=
o" />
>         <dllmap dll=3D"libgdk_pixbuf-2.0-0.dll" target=3D"libgdk-pixbuf-2=
.0.so"
> />
>         <dllmap dll=3D"libgtk-win32-2.0-0.dll" target=3D"libgtk-x11-2.0.s=
o" />
> </configuration>
>=20
> Any ideas as to what to do here to get this to work? Any suggestions woul=
d
> be greatly appreciated!
>=20
> Thanks,
>=20
> Rob.
>=20
> ______________________________________________________
> Robert A. Wlodarczyk
> Robert.Wlodarczyk@stonybrook.edu
> Windows Messenger: rwlodarc@hotmail.com
> (cell) 516.446.3319 - (home) 631.265.0609 - (fax) 631.724.5528
> =20
>=20
>=20
> _______________________________________________
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list