Re: display unicode db text in visual C++ mfc ide 2003
- From: "Mihai N." <nmihai_year_2000@xxxxxxxxx>
- Date: Sun, 10 Dec 2006 20:37:45 -0800
My question is:
The active input locale will be in ENglish in OS-XP environment. Then my
mfc program (built in vs.2003 ide) will be running. This program will read
arabic text from database (using CDatabase/Crecordset) and will show it on
a dialog (title bar). Moreover, because of the integration to old programs,
I have to compile this program in mbcs mode. That is my problem.
Then you have a very big problem.
MBCS program running in English XP environment and showing Arabic is not
possible.
Now, this is the short story.
The long story is that you have only a few options:
- Set the system locale (the locale for non-Unicode applications) to Arabic
(but that means non-English environment in my book)
- Use Unicode in some of the UI, only where needed
This sounds nice in theory, but it tends to spread, and before you know
it, 80% of your application us Unicode. Only that you get there in a more
painfull way (bug reported, fixed, 50 times over, you are dragged to
Unicode kicking and screaming)
It can work only if your application is really clean, very modular
(which is nice on paper, but I did not see to often in real life)
- Compile the whole application as Unicode and change the interfaces with
the old programs, which I think is the right thing to do, and better
long term solution
--
Mihai Nita [Microsoft MVP, Windows - SDK]
http://www.mihai-nita.net
------------------------------------------
Replace _year_ with _ to get the real email
.
- References:
- Re: display unicode db text in visual C++ mfc ide 2003
- From: Kurt Grittner
- Re: display unicode db text in visual C++ mfc ide 2003
- From: Alexander Grigoriev
- Re: display unicode db text in visual C++ mfc ide 2003
- From: .asahan
- Re: display unicode db text in visual C++ mfc ide 2003
- Prev by Date: Re: View pointer in static function Help!!!
- Next by Date: Re: display unicode db text in visual C++ mfc ide 2003
- Previous by thread: Re: display unicode db text in visual C++ mfc ide 2003
- Next by thread: Re: display unicode db text in visual C++ mfc ide 2003
- Index(es):
Relevant Pages
|