Switch between languages at run-time?

I’m working on a project that is supposed to work on different markets. I’m using the Unicode programming and stuff like that. As usual I have some questions!
I was able to create some tools that can help me to edit separate Unicode resource files and create extra string tables that can store international text strings. Now I want to know if is there any way I can display my user interface using a particular string table that’ll be determined at run-time based only on the locals settings on the machine where the app is running. I want to know what are the steps that must be followed to construct such an application and what are the settings that has to be done on my Visual C++ 6.0 IDE.
Thanks,
Eddie.
LVL 1
MensanaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

akalmaniCommented:
Hi Mensana !!!
     Use AfxSetResourceHandle() for localisation and AfxGetResourceHandle()
0
mikeblasCommented:
See the LANGLOAD.ZIP sample at http://www.nwlink.com/~mikeblas/samples/ .  (Note: some day, all of my samples will move to http://www.mooseboy.com/ )

..B ekiM
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
MensanaAuthor Commented:
Hi Mike,
Thank you for answering my question. Unlike your sample, I didn’t want to switch programmatically to a different locale within my program, but I wanted to be able to display a particular set of strings just by changing the locale for my machine. I knew that when a thread is created, it uses the system default thread locale so I’ve changed the locale before I started the app. However, I didn’t get the right behavior and it was my entire fault. In Control Panel’s Regional Settings I changed the language in “Input Locales” – last tab - instead of “Regional Settings” – first tab.
Now, that I figured this out, everything is working just fine.
Mean time other questions were raised in my head but I was able to solve them using your sample and that’s way I rate your answer as “Excellent”. Thank you again!
Eddie Lascu.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.