Print Page | Close Window

Error when upgrading t Toolkit Pro 24.0

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=24537
Printed Date: 18 January 2025 at 12:21am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Error when upgrading t Toolkit Pro 24.0
Posted By: CJ_NN_05
Subject: Error when upgrading t Toolkit Pro 24.0
Date Posted: 27 December 2024 at 2:00pm
I have a MFC based Windows Application that compiles, builds and runs just fine with VS 2010 and Toolkit Pro 15.3.1. I am evaluating updating to Toolkit Pro 24.0.0 while also moving to VS 2019. I am able to get the code to compile and build just fine. However, I am getting the following error when setting the EnableMarkup() property on a CXTPRibbonBackstageButton object. This works just fine with Toolkit Pro15.3.1.

The error is 

---------------------------

Microsoft Visual C++ Runtime Library
---------------------------
Debug Assertion Failed!

Program: C:\**********\ToolkitProEval2400vc160D.dll

File: D:\Package\Temp\Eval\ToolkitPro\Source\Common\XTPApplication.cpp
Line: 103

Expression: NULL != m_pComInit

---------------------------

Any idea why this is happening? 





Replies:
Posted By: astoyan
Date Posted: 29 December 2024 at 1:28pm
Please make sure that your main application class is derived from CXTPWinApp.

Regards,
   Alexander


Posted By: CJ_NN_05
Date Posted: 10 January 2025 at 6:02am
Alex,

Thanks for your prompt response. Sorry, I was out over the New Year's break hence couldn't reply earlier. That did address the original issue. However, I now get a more generic assert at runtime. This is an outcome of the latest change. Any idea what might be going on?

---------------------------

Microsoft Visual C++ Runtime Library
---------------------------
Debug Assertion Failed!

Program: C:\WINDOWS\SYSTEM32\mfc140d.dll

File: D:\a\_work\1\s\src\vctools\VC7Libs\Ship\ATLMFC\Src\MFC\oleinit.cpp
Line: 49

---------------------------




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