本文介绍了有没有人尝试使用Visual Studio 2008或2010构建Ultimate Toolbox?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用Visual Studio 2010编译Ultimate Toolbox时,会多次出现以下错误消息:
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 />
Ultimate Toolbox 9.0和9.3出现同样的错误。此外,Visual Studio 2008也会出现同样的错误。
链接到有关Ultimate Toolbox的更多信息:
[]
推荐答案
这篇关于有没有人尝试使用Visual Studio 2008或2010构建Ultimate Toolbox?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!