Print Page | Close Window

Issue after upgrade of toolkit

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=24543
Printed Date: 30 January 2025 at 4:10pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Issue after upgrade of toolkit
Posted By: upeters
Subject: Issue after upgrade of toolkit
Date Posted: 29 January 2025 at 10:27am
Hello,

I have an application which was used with Toolkit 13.4.0 without any known issues. Now I am linking the same source with the current version (24.0.0.0) and I get this error when the application is executed:



This happens when I access a specific tab of a CXTResizePropertyPage. So far, I couldn't make much sense of this.

Can somebody please give a hint where to look? Thank you.



Replies:
Posted By: cpede
Date Posted: 30 January 2025 at 7:13am
Just some experiences I have had with COM and the new XTToolkit.

Some parts of XTToolKit uses COM objects; examples I found are the XML and Markup parser.
For making it "simpler" for us XTToolkit included COM initialization to the CXTPWinApp class.

However that can cause other problems. This means, that if you have something like AfxOleInit() or CoInitialize(NULL) in your CXTPWinApp InitInstance method you will also get an error.

On the other hand if you don't derive from CXTPWinApp and uses some parts of the XTToolkit that uses COM you will get an error like the one you have.

So try to change your CWinApp to CXTPWinApp and see if the problem is solved.




-------------
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)


Posted By: upeters
Date Posted: 30 January 2025 at 7:29am
Hello, thank your for the reply.
From what I see, the application derives from CXTPFrameWnd.

-Ulrich



Posted By: cpede
Date Posted: 30 January 2025 at 7:34am
I think that you have to go further back.
Try searching for CWinApp to get you to your application start object, and replace all occurrences with CXTPWinApp.


-------------
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)


Posted By: upeters
Date Posted: 30 January 2025 at 7:38am
Right, found it! Thank you for this, I'll check and see if this helps.

-Ulrich


Posted By: upeters
Date Posted: 30 January 2025 at 8:49am
Confirmed, this was the issue. Thank you again for this very helpful hint.

-Ulrich



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