Print Page | Close Window

XTPResourceManager() and multiple resource .DLLs.

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=18289
Printed Date: 19 May 2024 at 10:20pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: XTPResourceManager() and multiple resource .DLLs.
Posted By: ddlittle
Subject: XTPResourceManager() and multiple resource .DLLs.
Date Posted: 28 April 2011 at 12:50pm
We are implementing localizations using XTPResourceManager(), and it works great in most cases.  We are having a hard time figuring out how to use it to grab strings from more than one location.  for example:
 
p1.exe
      d1.dll
      d2.dll
      d3.dll
 
d1, d2, and d3.dll all contain resources.  I've created resource files (p1RU.dll, d1RU.dll,d2RU.dll,d2RU.dll), but the only way we've found so far to grab resources from d1RU.dll is via LoadLibrary() and using that instance handle to AfxSetResourceHandle().
 
As long as the resource is actually *IN* d1RU.dll, then that's fine, but if it isn't, we have to manually search for the resource in d1.dll.  XTPResourceManager() handles this fine, but since it's static, i don't think i can have more than one per process.
 
Any ideas?
 
 
 



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