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

Robert A. Wlodarczyk Robert.Wlodarczyk@stonybrook.edu
Mon, 03 Feb 2003 19:50:52 -0500


Hi,

I have a fresh installation of RedHat 8.0 with the latest build of mono =
and
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 =
that
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.

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=85 I=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

** (SimpleWindow.exe:1530): WARNING **: Failed to load library
libuser32.dll.so (user32.dll): libuser32.dll.so: cannot open shared =
object
file: No such file or directory

** (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

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 () =
in
<0x00012> 00 System.Windows.Forms.ContainerControl:get_CreateParams () =
in
<0x00012> 00 System.Windows.Forms.Form:get_CreateParams () in <0x00062> =
00
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.so" />
        <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.so" />
</configuration>

Any ideas as to what to do here to get this to work? Any suggestions =
would
be greatly appreciated!

Thanks,

Rob.

______________________________________________________
Robert A. Wlodarczyk
Robert.Wlodarczyk@stonybrook.edu
Windows Messenger: rwlodarc@hotmail.com
(cell) 516.446.3319 - (home) 631.265.0609 - (fax) 631.724.5528
=A0