![]() |
Problems upgrading from xtp9.81 to xtp11.1.3 |
Post Reply
|
| Author | ||
farr02
Groupie
Joined: 10 May 2005 Status: Offline Points: 51 |
Post Options
Thanks(0)
Quote Reply
Topic: Problems upgrading from xtp9.81 to xtp11.1.3Posted: 27 June 2007 at 8:44am |
|
|
Hello,
I have some problems upgrading from XTP9.81 to XTP11.1.3. When compiling our project with the new version, several warnings (more than 19.000!) and a linker error occur. Most of the warnings are of type C4514, for example:
together with C4511 (copy constructor could not be generated), C4512 (assignment operator could not be generated) and C4127 (conditional expression is constant). The linker error gives a duplicate resource:
Well, in my project there is no such resource. The same project compiled with XTP9.81 gives no errors and no warnings. I am using Visual Studio 6.0 (with SP6, warnlevel set to 4) and link XTP statically. What's going wrong? Best regards, Holger |
||
![]() |
||
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 27 June 2007 at 2:50pm |
|
|
Hello, Sorry, I can't reproduce warnings - please try to create new project with wizard , set warning level 4 and check if they exist. If not - it can be some specific options of your application's project - try to isolate them. or some includes in stdafx.h....
btw... Warnings look like generated from Intell compiller. do you use it?
Resource error can be _only_ because you have another bitmaps with id = 9500 - can be your resource or some bitmap from some other library
|
||
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
||
![]() |
||
farr02
Groupie
Joined: 10 May 2005 Status: Offline Points: 51 |
Post Options
Thanks(0)
Quote Reply
Posted: 03 July 2007 at 10:10am |
|
|
Hi Oleg,
the warnings occurred due to the include order in my stdafx.h. After sorting the includes a bit (moving the include of XToolkitPro.h to the end of the list) they were gone. ![]() The other problem regarding the duplicate resource was because of including both the english and the german resources provided by the toolkit. In 9.81 that was no problem and works without an error. What is the best way to compile with english and german resources together in one project and without using external dll-(or xml-) files as shown in the scribble example? Best regards, Holger |
||
![]() |
||
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 03 July 2007 at 2:07pm |
|
|
Hi,
you can try this:
#include "XTToolkitPro.rc"
#define _XTP_RESOURCE_LANGUAGE de
#define _XTP_NO_BINARY_RESOURCES #include "XTToolkitPro.rc" but I recommend you use external files - seems SetThreadLocale not longer supported by Vista:
|
||
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
||
![]() |
||
farr02
Groupie
Joined: 10 May 2005 Status: Offline Points: 51 |
Post Options
Thanks(0)
Quote Reply
Posted: 04 July 2007 at 5:41am |
|
|
Hi Oleg,
the "#define _XTP_NO_BINARY_RESOURCES" was missing in my code. Now the application compiles and links fine. Thanks:-) But I have a problem using external files that hold language information. My application consists of a main program that loads about 400 user DLLs at startup. Each DLL has some resource strings available in two languages. That means about 800 additional language files to load at startup or is it better just to have two language files that hold the strings for all DLLs (which will lead to problems when a user creates an own DLL and wants to use it with my program)? What is a good solution in my case? Best regards, Holger |
||
![]() |
||
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 |