rt

解决方案 »

  1.   

    我说的不是编译器的版本,是说判断程序是运行在中文Windows还是英文Windows,应该怎么办?
      

  2.   

    1.
    LANGID langeID=GetSystemDefaultLangID();
    if(langeID==0)
    {
    AfxMessageBox("fail");
    }
    else if(langeID==0x0804)//
    {
    AfxMessageBox("Chinese");
    }
    2.
    LANGID langID=GetUserDefaultLangID();
    if(langID==0){
    AfxMessageBox("Fail");
    }else if (langID==0x0804)
    {
    AfxMessageBox("Chinese");
    }
    3.
    char chLange[255]="";
    int nResult=GetLocaleInfo(LOCALE_SYSTEM_DEFAULT,LOCALE_SLANGUAGE,chLange,sizeof(chLange));
    AfxMessageBox(chLange);
    共上述三种方法