Print Page | Close Window

24.2.0 Bug

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=24582
Printed Date: 31 August 2025 at 3:56pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: 24.2.0 Bug
Posted By: kiroecke
Subject: 24.2.0 Bug
Date Posted: 01 July 2025 at 10:44am
Obviously, the new 24.2.0 has a bug in the compiled library (ToolkitPro2420vc170U.lib). The linker crashes with 

unresolved external symbol "__declspec(dllimport) public: __thiscall CXTPWinApp::CXTPWinApp(void)" (__imp_??0CXTPWinApp@@QAE@XZ) referenced in function "public: __thiscall CMyApp::CMyApp(void)" (??0CMyApp@@QAE@XZ)

Please help!



Replies:
Posted By: astoyan
Date Posted: 02 July 2025 at 3:41pm
Are you using _XTP_USE_WINAPPEX macro? If yes, please make sure you have it defined for both Toolkit Pro project and your application project. Once defined for the Toolkit Pro project the libraries have to be re-compiled.

Regards,
  Alexander


Posted By: kiroecke
Date Posted: 03 July 2025 at 3:41am
That sounds difficult: I compiled the ToolkitPro with the Deployment Routine that Codejock provided and changed nothing between 24.1 and 24.2! Probably, there is another problem. By the way, it crashes with the unicode setting, but not with the multi-byte character setup ... 


Posted By: astoyan
Date Posted: 07 July 2025 at 11:19am
The only thing that could have caused that linking error is using  _XTP_USE_WINAPPEX in one project when it's not used in another. For example, your project can have it defined in the compiler settings for the selected configuration, but ToolkitPro was built without  _XTP_USE_WINAPPEX defined for the same configuration, or vice versa. You need to carefully review settings of both projects and make use of that macro consistent or remove it completely. Don't forget to rebuild the affected projects in order the changes to take effect.


Posted By: gdprosch
Date Posted: 09 July 2025 at 6:06pm
Actually, I cannot even compile the Codejock toolkit when _XTP_USE_WINAPPEX is configured as a compiler directive:

1>------ Build started: Project: Codejock.ToolkitPro.Static, Configuration: Static Unicode Release x64 ------
1>XTPWinApp.cpp
1>C:\Dev\ProductDependencies\Release-2025\toolkitpro.24.2.0\Source\Common\Base\XTPWinApp.cpp(66,17): error C2146: syntax error: missing ')' before identifier 'bResourceSmartUpdate'
1>(compiling source file '/Source/Common/Base/XTPWinApp.cpp')
1>C:\Dev\ProductDependencies\Release-2025\toolkitpro.24.2.0\Source\Common\Base\XTPWinApp.cpp(66,12): error C2377: 'BOOL': redefinition; typedef cannot be overloaded with any other symbol
1>(compiling source file '/Source/Common/Base/XTPWinApp.cpp')
1>    C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\shared\minwindef.h(157,29):
1>    see declaration of 'BOOL'
1>C:\Dev\ProductDependencies\Release-2025\toolkitpro.24.2.0\Source\Common\Base\XTPWinApp.cpp(66,17): error C2146: syntax error: missing ';' before identifier 'bResourceSmartUpdate'
1>(compiling source file '/Source/Common/Base/XTPWinApp.cpp')
1>C:\Dev\ProductDependencies\Release-2025\toolkitpro.24.2.0\Source\Common\Base\XTPWinApp.cpp(66,37): error C2059: syntax error: ','
1>(compiling source file '/Source/Common/Base/XTPWinApp.cpp')
1>C:\Dev\ProductDependencies\Release-2025\toolkitpro.24.2.0\Source\Common\Base\XTPWinApp.cpp(66,53): error C2059: syntax error: ')'
1>(compiling source file '/Source/Common/Base/XTPWinApp.cpp')
1>C:\Dev\ProductDependencies\Release-2025\toolkitpro.24.2.0\Source\Common\Base\XTPWinApp.cpp(68,36): error C2065: 'xtpComInit': undeclared identifier
1>(compiling source file '/Source/Common/Base/XTPWinApp.cpp')
1>C:\Dev\ProductDependencies\Release-2025\toolkitpro.24.2.0\Source\Common\Base\XTPWinApp.cpp(69,23): error C2665: 'CXTPWinApp::CXTPWinApp': no overloaded function could convert all the argument types
1>(compiling source file '/Source/Common/Base/XTPWinApp.cpp')


Posted By: kiroecke
Date Posted: 12 July 2025 at 10:46am
I myself switched back to the 24.1.0 until some clarification is there :-)


Posted By: astoyan
Date Posted: 14 July 2025 at 4:45pm
The issue has been fixed and the fix will be available in the next update. Feel  free to submit support request to get the patch.


Posted By: kiroecke
Date Posted: 15 July 2025 at 11:52am
Sorry, but the patch didn't help with the missing CXTPWinApp::CXTPWinApp(void) while linking ... 


Posted By: lrenoux
Date Posted: 11 August 2025 at 10:33am
1. Same issue as

"Actually, I cannot even compile the Codejock toolkit when _XTP_USE_WINAPPEX is configured as a compiler directive"

Contacting support and waiting for patch ....

2. Unable to launch Gauge sample without a crash ...

3. The com Initializer does not allow CXTPWinApp application to be a in plug, loaded after Ole or Com initialized by someone else. It will be nice that the initializer does nothing when required !



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