tags:

views:

33

answers:

2

Hi how to get the language name,how to find the language that the OS is installed say eg : If the OS is Japaness then i should display the language "Japanness"

A: 

According to MSDN you need to use GetUserDefaultLCID function for this.

Naveen
hi plz will give me a sample code that i can get more clear,any example
john
I think you mean `GetUserDefaultLocaleName()`. The LCID one won't give you a _name_ but a _number_. `GetUserDefaultLocaleName()` will directly put the locale name into the buffer provided.
MSalters
A: 

"Globalization Step-by-Step" Section "Retrieving the User Locale in Win32" here

galiya