i change the resource(AfxSetResourceHandle) by clicking a menu item, then i show new a dialog,my program use the dialog accord to my choice, but the GUIs which had been showed was not effected.
H
hs
@hs
Posts
-
Support MultiLanguage in VC -
Support MultiLanguage in VCI want my application which is written with VC to support Multiple language. i did the follow: first, i put resource to dlls, each dll is for one language, then, CMyApp::InitInstance() { int nLang = detect_which_language_to_use(); CString strLang; strLang.Format("Lang%d.dll", nLang); //load the resource HINSTANCE hInstance = ::LoadLibrary(LPCTSTR(strLang)); ASSERT(hInstance); ::AfxSetResourceHandle(hInstance); } it works. but now i want to let the user choose the language, that is, i add a menu in my program, user can choose the language he want by clicking the menu. how can i do these? thanks. hs