Using MBCS in a UNICODE defined project
- From: hamishd <Hamish.Dean@xxxxxxxxx>
- Date: 13 May 2007 23:07:59 -0700
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.
I
.
- Follow-Ups:
- Re: Using MBCS in a UNICODE defined project
- From: David Wilkinson
- Re: Using MBCS in a UNICODE defined project
- Prev by Date: Re: Preventing task manager from closing my application.
- Next by Date: Re: Validate file names
- Previous by thread: MeasureString and Vista
- Next by thread: Re: Using MBCS in a UNICODE defined project
- Index(es):
Relevant Pages
|