Win32: C: Chinese language inputting improperly in text box.Extremely strange bug, please help!

G

greggorob64

Hello, I am working with a system developed several years ago, and was
recently internationalized to support unicode languages.

I am running into a very frustrating and challenging problem:

In 99% of the textboxes, entering chinese (or japanese or arabic)
characters (using windows IME), in any amount and length, will show
up and puts random characters int he textbox (sometimes '?', sometimes
a box, sometimes a different chinese char, never the correct
character). Spanish, German, etc, sho up fine.

For me to reproduce the symptom, i click inside the textbox, with IME
in chinese, type X, I, enter, enter (to pridoce the xi character, then
a second enter to return out of the ime. eveyrhting shows up properly
until the last enter, when the random garbage is produced.

To further complicate the situation, if i type the test in any other
textbox (word, excel, firefox), the characters show up fine. When i
copy those, and paste into my suspect textboxes, they show up FINE.



The peculiar part of my problem is that there are certain textboxes
that do input the chinese text properly (a home-made prompt dialog box
function). All the styles and extended styles for both the textboxes
and windows have been compared, and they are not the source of the
problem. Also, all of the windows messages bieng sent for the
controls were compared, and are identical.

The only direction I know to go in right now is that the WORKING
textbox was produced with DialogBoxIndirectParam fuction, while the
broken edit control was produced item by item, using the
CreateWindowEx function.

Any directions or insight on the problem?

Thanks in advance.
 

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,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top