Re: Using MBCS in a UNICODE defined project
- From: "Bob Eaton" <pete_dembrowski@xxxxxxxxxxx>
- Date: Mon, 14 May 2007 16:38:37 +0530
How are you "reading" it?
Bob
"David Wilkinson" <no-reply@xxxxxxxxxxxx> wrote in message
news:%23uTi5EglHHA.4032@xxxxxxxxxxxxxxxxxxxxxxx
hamishd wrote:
Hi, my project has the UNICODE and _UNICODE macros defined. I want to
display a lot of chinese text, and this is working well for me.
However, within the code, I make a call to a function:
TestFunction(char * input);
I need to supply it with MBCS format. So I use a T2A()....
TestFunction(T2A(input)); and all is good (assuming the string is
english alphabet chars).
However.. that "input" string is read from a text file. If the input
string is something like this..
"abcdefgXXXhigjklmop" - where "XXX" denotes some chinese MBCS chars
If i read that string my project reads it as unicode and gets it
wrong. How do i "tell" my application to read it as MBCS (it's always
MBCS)?
I hope this makes sense.. it's a bit confusing to me. The reading
worked correctly before i changed my app to UNICODE. now if there's
chinese chars in the file, it doesn't work.
hamishd :
WideCharToMultiByte().
--
David Wilkinson
Visual C++ MVP
.
- Follow-Ups:
- Re: Using MBCS in a UNICODE defined project
- From: hamishd
- Re: Using MBCS in a UNICODE defined project
- References:
- Using MBCS in a UNICODE defined project
- From: hamishd
- Re: Using MBCS in a UNICODE defined project
- From: David Wilkinson
- Using MBCS in a UNICODE defined project
- Prev by Date: Re: Using MBCS in a UNICODE defined project
- Next by Date: Acessing function with a DLL which has be loaded from another dll
- Previous by thread: Re: Using MBCS in a UNICODE defined project
- Next by thread: Re: Using MBCS in a UNICODE defined project
- Index(es):
Relevant Pages
|