Using helpful information from this group, I've managed to figure out:
> Setting the local for this specific app using the ...Software\Locales\my_appand_path.exe registry entry, and setting a string value of 'CHT
> verifying that my app loads the .CHT version of the form
> Encoding the Unicode Strings as Binary Resources in a separate.RC file which becomes part of the CHT subproject, and using the #pragma code_page(950) statement in the.RC file.
> Reading them into the application
I tried using the various WideCharToStr() functions and got back all
question marks. After some digging, I found the Windows API
WideCharToMultiByte() function, and manually forced the codepage to
950.
Now the call returns what looks like it could be real MBCS strings,
but when I assign that to the caption, the caption is still garbage.
The caption's Font is set to MingLiU, and I've tried both
DEFAULT_CHARSET and CHINESE_BIG5, and gotten the same result.
It seems to me there's a piece of the puzzle that I'm missing. Any
help would be appreciated.
Thanks for answering. I don't have Tnt Components, I'm trying to do
this with just the standard VCL components. Is this not possible?
I looked for Tnt components, and didn't find much information. They
don't even mention C++Bulder 5. Is it worth a try? If my forms have
to be a subclass of TntForm, does that mean I have to start from
scratch?
I tried installing the trial version of TsiLang Components, but got
this message:
"Can't load package c:\Program Files\SiComponents
\CBuilder5\TsiLang_CB5.bpl. One of the libraries needed to run the
application can't be found. Do you want to attempt to load this
package the next time a project is loaded?"
On my main development machine I hit "No" once, and subsequent removal
and re-installations of TsiLang trial version have no noticeable
effect.