Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Jonas Gauffin
|
Aug 25, 2006 - 3:53 AM
|
I’ve done something stupid, but I do not know what :/ I was fixing the menu and suddenly the CExtMenuControlBar wont load.
I get the following assert ASSERT( m_menuDoc.GetSafeHmenu() == NULL );
in int CExtMenuControlBar::OnCreate(LPCREATESTRUCT lpCreateStruct)
What can be wrong?
|
|
Suhai Gyorgy
|
Aug 25, 2006 - 4:36 AM
|
Try deleting the Prof-UIS section of your application’s registry values. Unfortunately if you change the structure or identifiers of the menu or toolbar, it can mess up the loading of the saved state of your application. Well, at least this would be my first guess.
|
|
Jonas Gauffin
|
Aug 25, 2006 - 5:18 AM
|
|
|
Technical Support
|
Aug 25, 2006 - 6:42 AM
|
Would you post the content of the Call Stack window when the assertion failure occurs (or send it us by e-mail)?
|
|
Jonas Gauffin
|
Aug 28, 2006 - 6:44 AM
|
|
|
Technical Support
|
Aug 28, 2006 - 7:11 AM
|
We guess you were able to initialize the child frame/view window somehow incorrectly. Could you send us the source code for the CMainFrame::OnCreate() and CYourCWinAppDerivedClass::InitInstance() methods? The most strange thing in the call stack is that the menu bar was unable to detect whether your application is SDI or MDI.
|
|