什么API函数可以知道当前windows是什么语言版本的?
是中文、英文、阿拉伯语、日语还是韩国语?

解决方案 »

  1.   


    // Judge the default lanuage ID of Windows System
        WORD wLangID=PRIMARYLANGID(::GetSystemDefaultLangID());    switch(wLangID)
        {
            case LANG_CHINESE:
                m_hLangDLL=AfxLoadLibrary(_T("Chinese.DLL"));
                break;
            //case…… 
            default:
                m_hLangDLL=AfxLoadLibrary(_T("English.DLL"));
                break;
        }
        if(!m_hLangDLL)
        {
            AfxMessageBox(_T("Unable to load resource DLL!\n\rUse self-resource!"));
        }
        else
        {
            AfxSetResourceHandle(m_hLangDLL);
        }