Print Page | Close Window

Multilanguage, Menu, StatusBar

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=8702
Printed Date: 14 November 2025 at 6:13am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Multilanguage, Menu, StatusBar
Posted By: TheWikkinger
Subject: Multilanguage, Menu, StatusBar
Date 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);
 



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net