![]() |
Multilanguage, Menu, StatusBar |
Post Reply
|
| Author | |
TheWikkinger
Newbie
Joined: 08 June 2005 Status: Offline Points: 2 |
Post Options
Thanks(0)
Quote Reply
Topic: Multilanguage, Menu, StatusBarPosted: 07 November 2007 at 6:31am |
|
Hi, I am having a problem when loading a resource dll and showing the proper resource in the statusbar when pointing on a menu item.
It always shows the resource of the exe and not of the resource dll!
Everything else is showing the right resources. When i directly load (CString.Format) the string resource from the dll which is responsible for the statusbar text it shows the right one from the dll.
Loading the resource dll is implemented the following way:
hInst = LoadLibrary(szLangDLL); AfxSetResourceHandle(hInst); Showing the menu:
CXTPCommandBar* pMenuBar = pCommandBars->SetMenu(_T("Menu"), IDR_MAINFRAME); I also tried loading the dll the following way - but with that it always shows the resources from the exe!
XTPResourceManager()->SetResourceManager(new CXTPResourceManager());
//XTPResourceManager()->SetResourceFile(szLangDLL); |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |