如何删除成员变量? [英] How to Remove member variable?

查看:132
本文介绍了如何删除成员变量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我是Visual C ++的初学者.我现在正在用Visual Studio 2008进行发现.我想知道将成员变量添加到控件后如何删除它.我在Visual C ++ 6.0中做到了这一点,但在Visual C ++ 2008中做不到同样的事情.请帮帮我.
非常感谢!

Hi all, Im beginner in Visual C++. Im now discovering with Visual Studio 2008. I want to know how can i remove a member variable after adding it to a control. I did this in Visual C++ 6.0 but i cant do same thing in Visual C++ 2008. Please help me.
Thanks very much!

推荐答案

您需要将其从代码本身中删除.只需从控件的头文件中删除成员变量即可.编译以及生成的构建错误将帮助您找到需要删除对其引用的所有其他地方.
You need to remove it from the code itself. Just remove the member variable from the header file for the control. Compile and the build errors that result will help you find all the other places where the references to it need to be removed.


Marcus是正确的-这一切都在代码中.

如果您是初学者,请停止使用Designer,然后专注于代码,直到您非常适应为止.不要发展弊端和妄想.当您回到Designer时,请不要过度使用它,而宁愿仅将其用于布局.

—SA
Marcus is right — this is all in code.

If you''re a beginner, stop working with Designer and concentrate on code until you are very comfortable. Don''t develop malpractices and delusions. When you go back to Designer, don''t overuse it, prefer using it just for layout.

—SA


这篇关于如何删除成员变量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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