Print Page | Close Window

Localization with two CodeJock libraries in use?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=5475
Printed Date: 04 March 2025 at 3:19am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Localization with two CodeJock libraries in use?
Posted By: Sstar9
Subject: Localization with two CodeJock libraries in use?
Date Posted: 09 November 2006 at 5:11am
In my application, I used both XTControls library and XTCommandBars library. Therefore, when I want to localize my English application to German, I have to 2 German CodeJock's Resource DLLs, one for the XTCommandBars library and one for the  XTControls library.  
 
However, I found it not possible set both Resouce DLLs at the same time.  I have tried the following code set the German resource DLL 
 
BOOL MyApp::InitInstance()
{
      ...
      //Set XTCommandBar Library
      XTPResourceManager()->SetResourceFile(  _T(strLibPath+"CommandBars.ResourceDe.dll") );
 
      //Set XTControls Library
       XTPResourceManager()->SetResourceFile(  _T(strLibPath+"Controls.ResourceDe.dll") );     
      ...
 
}
 
int MyApp::ExitInstance()
{
    XTPResourceManager()->Close();

    return CWinApp::ExitInstance();
}
 
 
, and I found the above code does not work. the CodeJock strings for CXTColorDialog and CXTColorPicker objects remain as English.  The tooltips for CXTPControlColorSelector object (in a drop-down color menu)  is gone. It seems I can only set the Resource DLL for XTCommandBars library, i.e. I should remove the following line of code
 
     //Set XTControls Library
       XTPResourceManager()->SetResourceFile(  _T(strLibPath+"Controls.ResourceDe.dll") );.
 
But I need all the objects instantiated from CodeJock library to be localized to another language.  Does anybody here know  what should be done with both Xtreme resource DLLS?
 
It's urgent for me, please help if you know.  My email address is
 
mailto:caohong@atekglobal.com - caohong@atekglobal.com  


-------------
Sharing makes life better



Replies:
Posted By: Oleg
Date Posted: 09 November 2006 at 7:41am
hmm. I see two sultions.
 
1. Use static linked library and put german resource to your rc2 file.
 
2. Manually Combine Xtrme Control + Xtreme Suite.\
need to copy files from Source folder of Xtreme Controls to Xtreme COmmandBar and add them to solution.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Sstar9
Date Posted: 09 November 2006 at 8:32am

Oleg, Thank you for your reply.

For the 2nd suggestion, could you elaborate a bit more?  I can find the localized resource files named Resource_de.rc under the following two directories
 
...\Codejock Software\MFC\Xtreme Controls 2006 Q3\Source\Controls\res
...\Codejock Software\MFC\Xtreme CommandBars 2006 Q3\Source\CommandBars\res
 
What should be proper steps to combine the 2 German resources and make them work for my solution?
 
 


-------------
Sharing makes life better


Posted By: Sstar9
Date Posted: 11 December 2006 at 11:59pm
Originally posted by oleg oleg wrote:

hmm. I see two sultions.
 
1. Use static linked library and put german resource to your rc2 file.
 
2. Manually Combine Xtrme Control + Xtreme Suite.\
need to copy files from Source folder of Xtreme Controls to Xtreme COmmandBar and add them to solution.
 
Hi, Oleg,
 
Can give you a few steps on how to combine the Resources dll from our CommandBars Library with our Controls Library?


-------------
Sharing makes life better



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