Home > Software engineering >  VS2010 internationalization problem
VS2010 internationalization problem

Time:11-06

Project need to implement the Vietnamese version of text, made the DLL when the resource bundle vs2010. Rc file is unicode encoding mode, call the main program is a multi-byte character set;
//determine language version
Cstrings STR.
STR. The Format (" mg % x.D LL ", g_sys m_langID);
G_LangID=g_sys. M_langID;

M_hLangDLL=AfxLoadLibrary (STR);
If (m_hLangDLL)
{
AfxSetResourceHandle (m_hLangDLL);//set the resource file
}

Above is the main program of switch resource DLL procedures, now the problem is that the main program can normal run, part of a display unicode Vietnamese will be abnormal?????? , the main exception is in the main program of control operation, such as color change to Group - box, and all the project window title bar, after loadstring load of a string table character resources as well as all of the menu bar displays abnormalities, such as the window font with MS Shell Dlg mapping local system resources,
Which bosses have encountered such a problem, or will deal with this problem can be guide to the younger brother,

CodePudding user response:

https://www.cnblogs.com/drunkard87/articles/3374227.html

CodePudding user response:

Put language related resources in the DLL, starting when judging the current environment, thus the different language resource DLL

CodePudding user response:

I met the GDI + individual unicode program show Chinese abnormal later add setlocale solve
  • Related