Converting from Unicode to Multibyte

M

miner49er

Hi there,

Here's my problem, please help - I think i'm going insane :)

I have written a DLL that returns Wide Char Unicode Chinese Strings.

I have a 3rd party Graph control (OCX) that requires Multibyte strings.

When I convert the Wide char to Multibyte, in the debugger they are

a) Seemingly random characters (with accents and stuff) if my "Regional
and Language Settings -> Standards and formats" is set to "Chinese
(Taiwan)".

b) A load of Question marks if regional settings are English.

If I send either of these to the 4rd party control, they appear as
Questions Marks.

So, basically, what is required to succesfully convert Wide Char to
Mutlibyte?

I've tried using the WideCharToMultiByte function but to no avail, what
could I be doing wrong?

Please, any help would be fantastic.

Cheers,

mat
 
R

Ron Natalie

miner49er said:
Hi there,

Here's my problem, please help - I think i'm going insane :)

I have written a DLL that returns Wide Char Unicode Chinese Strings.

I have a 3rd party Graph control (OCX) that requires Multibyte strings.

When I convert the Wide char to Multibyte, in the debugger they are
You need to consult a microsoft group. C++ really only weakly glosses
over internationalization issues. WideCharToMultibyte is a windows
call.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top