右击 对话框资源 事件,提示cannot add new member的解决方法
2014-05-07 23:05
281 查看
VC++中,右击 对话框资源->事件,提示cannot add new member 但是ClassWizard可以打开,双击资源框,与没有错误提示。
解决方法:
将所有自动生成的文件Clean掉,关闭工程,重新启动,并Build All //来自:http://www.csdn123.com/html/itweb/20131111/215335.htm
原因:根据以前的经验,
① 在//{{AFX_DATA_INIT(CShowST)
// NOTE: the ClassWizard will add member initialization here
//这里添加过自己手写代码,而非有calsswizard直接生成
//}}AFX_DATA_INIT
②在资源里添加过控件,而后又删除了(这种情况和偶尔会出错)
解决方法:
将所有自动生成的文件Clean掉,关闭工程,重新启动,并Build All //来自:http://www.csdn123.com/html/itweb/20131111/215335.htm
原因:根据以前的经验,
① 在//{{AFX_DATA_INIT(CShowST)
// NOTE: the ClassWizard will add member initialization here
//这里添加过自己手写代码,而非有calsswizard直接生成
//}}AFX_DATA_INIT
②在资源里添加过控件,而后又删除了(这种情况和偶尔会出错)
相关文章推荐
- 双击VC对话框提示cannot add new member的解决方法
- 编程技巧之:双击VC对话框提示cannot add new member以及类向导中没有已经建立的类的解决方法
- 双击VC对话框提示cannot add new member的解决方法
- 双击VC对话框提示cannot add new member的解决方法
- 双击VC对话框提示cannot add new member的解决方法
- VC++中,提示cannot add new member的解决方法
- VC++中,提示cannot add new member的解决方法
- 双击VC对话框提示cannot add new member的解决
- VC++中,提示cannot add new member的解决方法
- cannot add new member的解决方法
- "cannot add new member"解决方法
- [总结]在VS中编辑修改资源视图后保存时提示-cannot change standard mfc resources ,无法保存资源视图的一个解决方法
- MFC工程中, 双击按钮,无法进到响应函数,提示“cannot add new member”
- vc6.0出现“cannot add new member”解决办法
- vc6.0出现“cannot add new member”解决办法
- 解决vc++ cannot add new member
- 关于编译器提示a declaration cannot have a label的解决方法
- Win7旗舰版系统访问共享计算机提示"您可能没有权限使用网络资源"的解决方法
- VC6里改变对话框资源ID号后classwizard不能正常显示控件ID的原因及解决方法
- Mysql Err1215 Cannot add foreign key解决方法