list of country names

In many software like in spell checking, there is list of country name and code name too. like en_US.
I need to get name of the countries in a list. How could I create this list. I have heard something about locale is this the same thing? How could I collect all these in a list?
Any suggestion in this regard will be greatly appreciated!

Thanks a lot!
You could spend 5 min on Google. I did and found that the list is available from the ISO for a fee, you need to search for ISO 3166-1:2006.

The individual country codes are:
http://webdesign.about.com/od/localization/l/blcountrycodes.htm

And the language codes are:
http://webdesign.about.com/od/localization/l/bllanguagecodes.htm

But you need the ISO doc for the definitive list of combinations.
Thanks "kbw"

May be my question was not appropriate. Sorry for that. But I wanted to know whether this list is available inside c++. I am thinking so because the locale in c++ works on basic of this. If I could get this list beside creating my own custom.
But I wanted to know whether this list is available inside c++.
Not to my knowledge. The Visual Studio MFC Wizard seems to have some knowledge of such things. Perhaps you could look into where it gets that information, you could get luck and find some interface that provides lang/sublang info.
I believe its <locale> library of the C++ standard. I don't know if I can figure out the full list of what it understands or not. I haven't researched that far. I only know about it in a book I have.
Last edited on
Topic archived. No new replies allowed.