Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

BCB 5: Asian Characters on VCL Components?

8 views
Skip to first unread message

epea...@rumbledev.com

unread,
Jul 27, 2007, 10:45:06 AM7/27/07
to
I'm trying to translate a C++ Builder application into various Asian
languages. Nothing fancy, just the menus and a few captions need to
be translated. To start with, I have a simple app with one caption,
and am trying to render it as Traditional Chinese.

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.

Ilan

unread,
Aug 3, 2007, 8:47:29 AM8/3/07
to
Are you using Tnt Components? Make sure your form is a subclass of
TntForm - that *should* work.

epea...@rumbledev.com

unread,
Aug 9, 2007, 10:51:07 AM8/9/07
to
On Aug 3, 8:47 am, Ilan <ilanaz...@gmail.com> wrote:
> Are you using Tnt Components? Make sure your form is a subclass of
> TntForm - that *should* work.

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.

0 new messages