Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Problems upgrading from xtp9.81 to xtp11.1.3
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Problems upgrading from xtp9.81 to xtp11.1.3

 Post Reply Post Reply
Author
Message
farr02 View Drop Down
Groupie
Groupie


Joined: 10 May 2005
Status: Offline
Points: 51
Post Options Post Options   Thanks (0) Thanks(0)   Quote farr02 Quote  Post ReplyReply Direct Link To This Post Topic: Problems upgrading from xtp9.81 to xtp11.1.3
    Posted: 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:

c:\programme\codejock software\mfc\xtreme toolkitpro v11.1.3\source\common\xtpsmartptrinternalt.h(110) :
warning C4514: '=' : unreferenced inline/local function has been removed

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:

CVTRES : fatal error CVT1100: duplicate resource -- type:BITMAP, name:9500, language:0x0000

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


Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
farr02 View Drop Down
Groupie
Groupie


Joined: 10 May 2005
Status: Offline
Points: 51
Post Options Post Options   Thanks (0) Thanks(0)   Quote farr02 Quote  Post ReplyReply Direct Link To This Post 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


Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
farr02 View Drop Down
Groupie
Groupie


Joined: 10 May 2005
Status: Offline
Points: 51
Post Options Post Options   Thanks (0) Thanks(0)   Quote farr02 Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.031 seconds.