首页上一页 1 下一页尾页 1 条记录 1/1页
VC++从入门到精通:设计Xp风格工具栏例子中问题(光盘\TM\sl\10\5)
发表在C语言图书答疑
2010-03-20
是否精华
是
否
版块置顶:
是
否
按照书上步骤执行后出现如下错误,怎么回事?
:\test\XPToolBar2\CustomToolBar.cpp(35) : error C2556: 'int __thiscall CCustomToolBar::OnOwnerDraw(struct tagNMHDR *,long *)' : overloaded function differs only by return type from 'void __thiscall CCustomToolBar::OnOwnerDraw(struct tagNMHDR *,long
*)'
F:\test\XPToolBar2\CustomToolBar.h(38) : see declaration of 'OnOwnerDraw'
F:\test\XPToolBar2\CustomToolBar.cpp(35) : error C2371: 'OnOwnerDraw' : redefinition; different basic types
F:\test\XPToolBar2\CustomToolBar.h(38) : see declaration of 'OnOwnerDraw'
Generating Code...
:\test\XPToolBar2\CustomToolBar.cpp(35) : error C2556: 'int __thiscall CCustomToolBar::OnOwnerDraw(struct tagNMHDR *,long *)' : overloaded function differs only by return type from 'void __thiscall CCustomToolBar::OnOwnerDraw(struct tagNMHDR *,long
*)'
F:\test\XPToolBar2\CustomToolBar.h(38) : see declaration of 'OnOwnerDraw'
F:\test\XPToolBar2\CustomToolBar.cpp(35) : error C2371: 'OnOwnerDraw' : redefinition; different basic types
F:\test\XPToolBar2\CustomToolBar.h(38) : see declaration of 'OnOwnerDraw'
Generating Code...