Re: TCHAR string?
- From: "Bob Eaton" <pete_dembrowski@xxxxxxxxxxx>
- Date: Wed, 11 Jan 2006 22:16:05 +0530
Here's an example where Unicode is a sticking point that can't be worked
around on Win9x (even with MSLU):
Text in the Devanagari range of Unicode will be clobbered when calling
certain system functions that take a string (e.g. registry calls).
The reason this will never work on Win9x (even with MSLU) is that MSLU
depends on the presence of a code page to convert from "wide" to "narrow"
when going to such system calls, and there is no code page for Devanagari
Unicode (nor most of the Indic ranges of Unicode). So the internal Unicode
strings just get converted to "?"s and those are put into the registry.
So while I think MSLU is an good (or at least "interesting") idea, depending
on the range of Unicode your application is used for, it may or may not be
worthwhile.
Bob
"Pete Delgado" <Peter.Delgado@xxxxxxxxx> wrote in message
news:ObBhgwfFGHA.2648@xxxxxxxxxxxxxxxxxxxxxxx
>
> "Jonathan Wood" <jwood@xxxxxxxxxxxxxxxx> wrote in message
> news:OKI8vyVFGHA.1424@xxxxxxxxxxxxxxxxxxxxxxx
>> Pete,
>>
>>> I understand your point, however, but I think that if for some strange
>>> reason you looked at back porting an application to Windows 9.X, Unicode
>>> support would likely be the *least* of your problems!
>>
>> Not that it matters but my most recent program update no longer runs on
>> Win95/98/ME and Unicode is pretty much the only reason.
>
> Interesting. I have ported several large programs and while there were
> indeed technical challenges, it wasn't impossible, There have been others
> programs that I couldn't port because they relied on system services that
> weren't there in the earlier operating systems, but the point is that the
> sticking point was never Unicode support.
>
> I'd be curious to see exactly where your problems lie and whether the
> problems were insurmountable or whether the application could be ported
> with some modification. In my experience, if Unicode is your only issue,
> the likelihood is that the program can be ported. However, depending upon
> your design decisions, there are things that you could have done that
> would make a port very messy.
>
> -Pete
>
.
- Follow-Ups:
- Re: TCHAR string?
- From: Pete Delgado
- Re: TCHAR string?
- References:
- TCHAR string?
- From: kathy
- Re: TCHAR string?
- From: Ajay Kalra
- Re: TCHAR string?
- From: kathy
- Re: TCHAR string?
- From: Jonathan Wood
- Re: TCHAR string?
- From: Norman Diamond
- Re: TCHAR string?
- From: Jonathan Wood
- Re: TCHAR string?
- From: Daniel James
- Re: TCHAR string?
- From: Jonathan Wood
- Re: TCHAR string?
- From: Daniel James
- Re: TCHAR string?
- From: Jonathan Wood
- Re: TCHAR string?
- From: Pete Delgado
- Re: TCHAR string?
- From: Jonathan Wood
- Re: TCHAR string?
- From: Pete Delgado
- Re: TCHAR string?
- From: Jonathan Wood
- Re: TCHAR string?
- From: Pete Delgado
- TCHAR string?
- Prev by Date: Re: How to use BSTR?
- Next by Date: Re: CAsyncSocket and Send
- Previous by thread: Re: TCHAR string?
- Next by thread: Re: TCHAR string?
- Index(es):
Relevant Pages
|