Mood: happy
Topic: VC++
Ever wondered how to get language name and country name from a given language id like 1033.
Well this is how we do it...
TCHAR szBuffer[MAX_PATH] = { 0 };
// Get language name, for eg: English
GetLocaleInfo( MAKELCID( 1033, SORT_DEFAULT ), LOCALE_SENGLANGUAGE, szBuffer, MAX_PATH );
MessageBox( szBuffer );
// Get country name, for eg: United states.
GetLocaleInfo( MAKELCID( 1033, SORT_DEFAULT ), LOCALE_SENGCOUNTRY, szBuffer, MAX_PATH );
MessageBox( szBuffer );
JESUS Rulz :))
Posted by Nibu babu thomas
at 4:01 PM
Updated: Monday, 27 November 2006 6:25 PM