Print Page | Close Window

Chart Resources Multilanguage Problem

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=17967
Printed Date: 19 June 2025 at 3:33pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Chart Resources Multilanguage Problem
Posted By: Marcus
Subject: Chart Resources Multilanguage Problem
Date Posted: 28 February 2011 at 7:04am
In my project I link XTP statically and include XTP resources in german and english like this:
#include <XTToolkitPro.rc>
#define _XTP_NO_BINARY_RESOURCES
#define _XTP_RESOURCE_LANGUAGE de
#include <XTToolkitPro.rc>
_XTP_NO_BINARY_RESOURCES prevents language-neutral resources to be included multiple times.
In V15, you added chart resources, which are all in english or language neutral.
Now, RC quits with an error message because of duplicate resources.
My current solution is adding #define _XTP_EXCLUDE_CHART, because I don't have use for chart controls yet.
But, I think you should fix this, for example by adding a Resource-Neutral.rc file to the Chart component, like in the other components, and checking for _XTP_NO_BINARY_RESOURCES.



Replies:
Posted By: Oleg
Date Posted: 28 February 2011 at 2:32pm
Thanks. changed.


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


Posted By: evoX
Date Posted: 25 June 2011 at 12:44pm
For me chartpro does not work at all in a translated app...:(
I have the same static link to XTP


-------------
Product: Xtreme ToolkitPro 19.30
Platform: Windows 10 64bit
Language: Visual C++ (VS 2019)


Posted By: evoX
Date Posted: 25 June 2011 at 8:20pm
Is there a way to use chartpro with a translated DLL ? because I cannot make it to work

-------------
Product: Xtreme ToolkitPro 19.30
Platform: Windows 10 64bit
Language: Visual C++ (VS 2019)


Posted By: Oleg
Date Posted: 28 June 2011 at 6:02am
Hi,

What it means ? What you can't make work? ChartPro doesn't have any resources now that should be localized.


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


Posted By: evoX
Date Posted: 28 June 2011 at 7:06pm
I have finally fixed the problem.
I had to call RegisterWindowClass in OnInitDialog in order to work.

-------------
Product: Xtreme ToolkitPro 19.30
Platform: Windows 10 64bit
Language: Visual C++ (VS 2019)



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