Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Issue after upgrade of toolkit
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Issue after upgrade of toolkit

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


Joined: 31 May 2007
Location: Brazil
Status: Offline
Points: 25
Post Options Post Options   Thanks (0) Thanks(0)   Quote upeters Quote  Post ReplyReply Direct Link To This Post Topic: Issue after upgrade of toolkit
    Posted: Yesterday 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.
Back to Top
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Location: Denmark
Status: Offline
Points: 680
Post Options Post Options   Thanks (1) Thanks(1)   Quote cpede Quote  Post ReplyReply Direct Link To This Post Posted: 8 hours 59 minutes ago 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++)
Back to Top
upeters View Drop Down
Groupie
Groupie


Joined: 31 May 2007
Location: Brazil
Status: Offline
Points: 25
Post Options Post Options   Thanks (0) Thanks(0)   Quote upeters Quote  Post ReplyReply Direct Link To This Post Posted: 8 hours 43 minutes ago at 7:29am
Hello, thank your for the reply.
From what I see, the application derives from CXTPFrameWnd.

-Ulrich

Back to Top
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Location: Denmark
Status: Offline
Points: 680
Post Options Post Options   Thanks (1) Thanks(1)   Quote cpede Quote  Post ReplyReply Direct Link To This Post Posted: 8 hours 38 minutes ago 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++)
Back to Top
upeters View Drop Down
Groupie
Groupie


Joined: 31 May 2007
Location: Brazil
Status: Offline
Points: 25
Post Options Post Options   Thanks (0) Thanks(0)   Quote upeters Quote  Post ReplyReply Direct Link To This Post Posted: 8 hours 34 minutes ago at 7:38am
Right, found it! Thank you for this, I'll check and see if this helps.

-Ulrich
Back to Top
upeters View Drop Down
Groupie
Groupie


Joined: 31 May 2007
Location: Brazil
Status: Offline
Points: 25
Post Options Post Options   Thanks (1) Thanks(1)   Quote upeters Quote  Post ReplyReply Direct Link To This Post Posted: 7 hours 23 minutes ago at 8:49am
Confirmed, this was the issue. Thank you again for this very helpful hint.

-Ulrich
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.047 seconds.