Professional UI Solutions
Site Map   /  Register
 
 

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.

Forums » Prof-UIS Tech Support » MenuControlBar creation causes an assert Collapse All
Subject Author Date
Jacquie Howard Apr 20, 2004 - 5:28 PM

I am trying to create my m_wndMenuBar but it asserts in


CExtMenuControlBar::OnCreate


on


ASSERT( m_menuDoc.GetSafeHmenu() == NULL );


because it isn’t null - it doesn’t seem to be initialized properly from the start.


The sample code works fine of course


I think I must be missing something pretty basic here but can’t figure out what!

Technical Support Apr 21, 2004 - 10:56 AM

Dear Jacquie,

We believe that this assertion is caused by some typing error in your code or invalid sequence of the menu bar initialization steps. It is difficult for us to find out the cause without your help. Could you send us your test project or, at least, the source files of your main frame window?

Jacquie Howard Apr 23, 2004 - 9:34 AM

I was trying to use the SDIDOCVIEW sample mainframe class in my existing project and using the profuis dll.  The sample code worked fine within the sample but not in my existing project, so in the end I guessed that it must be something outside of the code.


It turned out the struct member alignment settings were different in my project and the dll.  Once I rebuilt the dll with my setting it was fine.


Thanks,


Jacquie