[Mono-list] Re: unicode wrapper

Serge serge@wildwestsoftware.com
Sat, 6 Apr 2002 17:02:44 +0300


> Hi!
> Could you send me please your unicode-wrapper (source + binaries).
> I would need them to run mono on win 9x

It's here:
http://mono.eurosoft.od.ua/files/unimono.zip

You will also need MSLU DLL:
http://www.microsoft.com/downloads/release.asp?releaseid=30039


Wrapper is generated by gen-unimono script, which is included in the archive
(it will work under NT+ only).
Script takes filename as its parameter, this file is a list of functions to
process.
There are two files included:
monow.txt: All *W functions currently used by mono;
unicows.txt: All functions exported by unicows.dll;

Included wrapper was generated by gen-unimono monow.txt.
Script works by parsing Platform SDK header files and looking for functions
given in list file.
You don't have to generate/compile wrapper code (you will need VC and PSDK
for this) - DLL and lib files included.
To compile mono with the wrapper:
Copy unimono.h into mono/io-layer dir.
Add #include "unimono.h" to io-layer.h right after #include <windows.h>.
Copy unimono.lib into your lib dir and make sure the lib will be included in
the build. You may edit build scripts or add unimono.lib to the linker's
specs file.
Then make clean build.

Please note that it's just a quick hack, because I can get ld to link with
unicows library directly (and that's maybe because I'm just missing
something and this can be done without any wrappers).

One note, while mono works with Unicode fix it apparently has some problems
under 9x. I tried it on two machines, and there are some strange
side-effects. Programs run fine (although thread2 test fails in the middle
for some reason), but after that if I try to launch any app (any native app)
the whole system just hangs. So, have fun ;)

Sergey




----- Original Message -----
From: "Guenther Roith" <groith@tcrz.net>
To: <serge@wildwestsoftware.com>
Sent: Saturday, April 06, 2002 4:51 PM
Subject: unicode wrapper


> Hi!
> Could you send me please your unicode-wrapper (source + binaries).
> I would need them to run mono on win 9x
>
> thanks!
>
> Johannes
>
>