Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2005 Apr : WideUpperCase / Widecomparestr not working on Win98?

www.cryer.info
Managed Newsgroup Archive

WideUpperCase / Widecomparestr not working on Win98?

Subject:WideUpperCase / Widecomparestr not working on Win98?
Posted by:"Arthur Hoornweg" (antispam.hoornweg@casema.nl.net)
Date:Wed, 27 Apr 2005 13:58:47

Hello all,

I had a hard time tracking down a bug in one of my COM servers that was
caused by
sysutils.WideUpperCase and WideCompareStr failiing on Windows 98.

The code worked flawlessly on Windows XP and 2000 but not on windows 98.

The strings I compared only contained valid US-Ascii characters so
locale can't
be an issue. When I replace these routines by Ansiuppercase and
Ansicomparestr
the code works correctly on Win98, but there's a speed penalty because
of the
implicit Unicode -> Ansi conversion each time.


Aren't these routines supposed to work on Windows 98 as well?


--
Arthur Hoornweg

(In order to reply per e-mail, please just remove the ".net"
  from my e-mail address. Leave the rest of the address intact
  including the "antispam" part. I had to take this measure to
  counteract unsollicited mail.)

Replies:

www.cryer.info
Managed Newsgroup Archive