Samlpe GUI_OneNote assert failure |
Post Reply |
Author | |
infralogic
Newbie Joined: 11 May 2003 Status: Offline Points: 2 |
Post Options
Thanks(0)
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 |
|
vladsch
Newbie Joined: 04 February 2004 Location: Canada Status: Offline Points: 30 |
Post Options
Thanks(0)
|
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.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |