利用stringtable 实现多语言

在 “资源视图”-》“Stringtable” 下 右键 stringtable -》 插入副本 弹出对话框 选择语言 如 “英语(美国)” 确定

会新增加了一个stringtable 然后在

BOOL C**** App::InitInstance()

{

// 新增

  if (GetACP() != 936)                // 如果判断当前系统不是中文系统用下列函数将英文字串表设为使用字串表

  {

    SetThreadUILanguage(MAKELANGID(LANG_ENGLISH,SUBLANG_ENGLISH_US));

  } 

}

需要把新增加stringtable里面的所有中文信息改为英文 ID值不需要改变,编译一下试试吧!(在VS2008 中编译通过 并成功运行)

posted @ 2013-06-08 16:09  预见者  阅读(513)  评论(0编辑  收藏  举报