Click here to Skip to main content
15,890,123 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
When compiling Ultimate Toolbox with Visual Studio 2010, the following error message appears multiple times:
common\libraries\ultimate toolbox\include\oxmenubar.h(606): error C2555: 'COXMenuBar::GetMenu': overriding virtual function return type differs and is not covariant from 'CWnd::GetMenu'<br />
c:\program files (x86)\microsoft visual studio 10.0\vc\atlmfc\include\afxwin.h(2442) : see declaration of 'CWnd::GetMenu'<br />
<br />
<br />
Line 606 in oxmenubar.h is the end of a class definition. The lines below appear within the class definition<br />
class OX_CLASS_DECL COXMenuBar : public COXCoolToolBar<br />
{<br />
<br />
<br />
	// --- In  :	<br />
	// --- Out : <br />
	// --- Returns:	Handle to the menu that is used in the menu bar<br />
	// --- Effect : Retrieves handle to the menubar menu<br />
	HMENU GetMenu() const { <br />
		ASSERT(::IsWindow(GetSafeHwnd()));<br />
		return m_hMenu; <br />
	}<br />
<br />
<br />
}<br />
<br />
<br />
The lines below appear within afxwin.h<br />
// CMenu Functions - non-Child windows only<br />
    virtual CMenu* GetMenu() const;<br />





The same error occurs with Ultimate Toolbox 9.0 and 9.3. Also, same error occurs with Visual Studio 2008.


Link to more information about Ultimate Toolbox:
The Ultimate Toolbox Home Page[^]
Posted
Updated 6-May-14 2:52am
v3
Comments
Maciej Los 5-May-14 16:54pm    
What is Ultimate Toolbox?
It would be good to place refererence (link) to the project...
[no name] 6-May-14 8:51am    
Well why don't you ask at the article location?

1 solution

Yep, we did build the libraries (and ended up not really using it anyway)

You have to apply the different patches found here :

The Ultimate Toolbox - Updates and User Contributions[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900