Print Page | Close Window

Samlpe GUI_OneNote assert failure

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=407
Printed Date: 23 December 2024 at 7:25am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Samlpe GUI_OneNote assert failure
Posted By: infralogic
Subject: Samlpe GUI_OneNote assert failure
Date Posted: 02 February 2004 at 1:28am

Am I the only one having an assert failure in the MFC GUI_OneNote sample app. (8.61) ??

Happens in the mainframe OnCreate at m_MTIClientWnd.Attach(this).

Regards

Niels




Replies:
Posted By: vladsch
Date Posted: 04 February 2004 at 5:19pm

I don't have the assert in the unmodified sample.

However, when I tried to implement the one note style tabs in my project I got the assert because my window was not inheriting from CMDIFrameWnd as required by the CXTPTabClientWnd class.

There are 3 asserts in the Attach method.

1. Asserts that the tabclientwnd is not already attached, happens if you attach 2x

2. Asserts if the Window being attached does not inherit from CMDIFramwWnd, as was my case

3. Asserts if it fails to subclass the m_hWndMDIClient window. Did not look into when this happens. But without this sublcassing the tabs won't show up.

Can you be more specific about which Assert() fires. Source File and Line Number that shows up in the assert message box.

 




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