![]() |
Localization with two CodeJock libraries in use? |
Post Reply ![]() |
Author | |
Sstar9 ![]() Newbie ![]() Joined: 25 August 2006 Status: Offline Points: 25 |
![]() ![]() ![]() ![]() ![]() 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 |
|
Sharing makes life better
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
Sstar9 ![]() Newbie ![]() Joined: 25 August 2006 Status: Offline Points: 25 |
![]() ![]() ![]() ![]() ![]() |
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
|
|
![]() |
|
Sstar9 ![]() Newbie ![]() Joined: 25 August 2006 Status: Offline Points: 25 |
![]() ![]() ![]() ![]() ![]() |
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
|
|
![]() |
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 |