vc 判断OS 所用语言版本
2009-05-20 14:05
190 查看
#include <stdio.h>
#include <windows.h>
int main(int argc, char* argv[])
{
LCID language;
language=GetSystemDefaultLCID();
switch(language)
{
case 2052:
printf("中文(中国)/n");
break;
case 3076:
printf("中文(香港)/n");
break;
case 1028:
printf("中文(台湾)/n");
break;
case 1033:
printf("英语(英国)/n");
case 1041:
printf("操他妈的小日本/n");
//若干format操作.....
break;
default:
printf("其他/n");
break;
}
return 0;
#include <windows.h>
int main(int argc, char* argv[])
{
LCID language;
language=GetSystemDefaultLCID();
switch(language)
{
case 2052:
printf("中文(中国)/n");
break;
case 3076:
printf("中文(香港)/n");
break;
case 1028:
printf("中文(台湾)/n");
break;
case 1033:
printf("英语(英国)/n");
case 1041:
printf("操他妈的小日本/n");
//若干format操作.....
break;
default:
printf("其他/n");
break;
}
return 0;
相关文章推荐
- js 判断浏览器版本和语言
- VC判断windows操作系统语言
- 对于获取客户端语言版本,判断客户端是什么系统的方法(附带 代码与国家地区对照表 )
- VC++获取系统信息/获取OS/获取MAC/获取本地IP/判断是否为网吧
- 判断闰年(go语言版本)
- Excel VBA判断Office语言版本
- 转载:VC在一个工程中实现多语言版本
- HiShop2.x版本中的上传插件分析,得出所用的模板语言为Underscore.js 1.6.0且自己已修改
- 在VC中判断VC版本
- VC INI文件实现多语言版本
- Web服务器应该怎么判断用户的语言版本
- VC在一个工程中实现多语言版本
- VC中使用纯资源dll实现多语言版本
- VC中最简便判断操作系统版本的方法
- vc编程判断运行时os是32位还是64位
- VC中用代码判断windows的版本
- VC2008以资源形式实现多语言版本(非Unicode)
- 判断浏览器及os版本
- VC判断系统是否为 Vista 或更高版本系统
- C#如何判断操作系统语言版本