🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.nativeapi
2 messages
2 total messages Started by bar Mon, 28 Apr 2008 09:12
NtSetDefaultLocale
#407
Author: bar
Date: Mon, 28 Apr 2008 09:12
14 lines
1295 bytes
Hi all

Have anybody used this API  NtSetDefaultLocale() in BCB 6.
I read http://www.pcreview.co.uk/forums/thread-526879.php.

Can i change the value for non-Unicode language selected for pc and restart 
it manually.
I need to give a free program in Hebrew language. But many pc do not have 
this selected.

What is the best i can do to help the users.

Regards
SA 
Re: NtSetDefaultLocale
#408
Author: Bob Gonder
Date: Mon, 28 Apr 2008 15:07
18 lines
1543 bytes
bar wrote:

>Can i change the value for non-Unicode language selected for pc and restart 
>it manually.

That is a poor way to do things.
Never make system-wide changes just so your program looks right.

>I need to give a free program in Hebrew language. But many pc do not have 
>this selected.

Have a look at SetThreadLocale()
For GUI apps, look in the help for "About National Language Support"

For consoles, the displayed font is controled by the code-page.
Look at SetConsoleOutputCP() and the help "Code-Page Identifiers".

Alternative: Supply and use a Hebrew Font.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads