Board index » cppbuilder » NtSetDefaultLocale

NtSetDefaultLocale


2008-04-28 05:12:03 PM
cppbuilder93
Hi all
Have anybody used this API NtSetDefaultLocale() in BCB 6.
I read 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

bar wrote:
Quote
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.
Quote
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.