定义两个工具栏对象错误 [英] defining two ctoolbar object error

查看:58
本文介绍了定义两个工具栏对象错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在MainFrm.h中定义了两个CToolBar对象,例如,

CToolBar m_wndToolBar;
CToolBar newbar;

当我运行该程序时,它将终止.
请帮助我.非常感谢!

I define two CToolBar objects in MainFrm.h,for example,

CToolBar m_wndToolBar;
CToolBar newbar;

when I run the program,it will break off.
please help me.Thank you very much!

推荐答案

当我运行程序时,它将终止."

这是什么意思?使用调试器逐步检查您的代码,并准确找到它的停止位置以及引起该问题的项目的值是什么.
"when I run the program,it will break off."

What does this mean? Use the debugger to step through your code and find exactly where it stops and what are the values of the items causing the problem.


这篇关于定义两个工具栏对象错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆