[Mono-list] Win32 UNICODE

Dan Lewis dihlewis@yahoo.co.uk
02 Apr 2002 22:58:26 +0100


On Tue, 2002-04-02 at 21:00, Dick Porter wrote:
> On Tue, Apr 02, 2002 at 08:54:26PM +0300, Serge wrote:
> > I'm not sure whether this is a bug or feature.
> > Currently io-layer.h defines (_)UNICODE macro to make use of *W versions of
> > Win32 APIs. The consequence of this is that mint/mono run under Windows 9x
> > but doesn't work properly in many cases.
> > In particular, all code that use threads fails because CreateMutexW has no
> > useful implementation under 9x line and always returns NULL.
> 
> AAAARRRRGGGGHHHH!

LOL! Although the MSDN docs say this and many other functions are
supported under 9x by installing the "Microsoft Layer for Unicode". Has
anyone tried this?

Maybe for the future the mechanisms that the io layer provides could be
wrapped up in a sanitized, minimalized mono host api -- it could also be
home to the exception and context stuff that Serge provided.

This would involve writing both Unix and Win32 implementations, but
avoids exporting these kind of aaaaaarrrrrrrrggggghhhhhh-worthy problems
to the rest of the codebase. The Win32 base services api is not only
ugly and inconsistent, but has way too many options that we don't need.
I have to say I felt physically sick adding some of those file io
functions.

Dan.



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com