Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Multilanguage, Menu, StatusBar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Multilanguage, Menu, StatusBar

 Post Reply Post Reply
Author
Message
TheWikkinger View Drop Down
Newbie
Newbie


Joined: 08 June 2005
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote TheWikkinger Quote  Post ReplyReply Direct Link To This Post Topic: Multilanguage, Menu, StatusBar
    Posted: 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);
 
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.032 seconds.