解决MFC对话框类不能建立new class contain the remnants of that class
来源:互联网 发布:淘宝修图师兼职 编辑:程序博客网 时间:2024/05/19 06:50
方法1:
这是由于之前新建过同名的类,尽管删除了.h和.cpp(项目中和文件夹中),但是没有关闭文件浏览窗口。VC是先检测打开的文件窗口,然后检测项目中没打开的文件。
所以解决方法就是:
1、首先关闭所有打开的文件浏览窗口;
2、重新编译整个项目;
3、再新建同名类,就OK了。
方法2:
解决MFC对话框类不能建立成功的方法:
用Wizard新建对话框类,总是出现:
Unable to open the files (...) for class ...
再点击出现:
"the files( ...) for the new class "..."contain remnants of that class" .
在网上有人己见给出了删除.CLW的方法,但是没有结出具体的操作步骤,所以还是让别人不知如何做.
具体步骤是这样的,
第一步:出现"Unable to open the files (...) for class ... "的提示后,你不要管它,直接关掉各对话框就行了.因为此时它己经建好了类和类的实现文件.这个时候要做的工作是,在VC中关闭工作空间,就是退出编程状态.(此时你可以在Windows的资源管理器上己经看到了你新建的类和实现文件了).
第二步:你在资源管理器中删掉那个".clw"文件;
第三步:重新在VC6下打开刚才的那个工作空间,调出你建立的那个对话框资源,然后接Ctrl+W,这时会出现一个对话框,意思是说没有clw文件,问你是不是将所有的文件全部用一个clw文件管理起来?当然是了.因此,你在那个要保存的文件名的位置直接输入你删除的那个文件名就行了.
第四步:你再用Ctrl+w就会发现你新建立的对话框类己经被Ctrl+W管理起来了.
本方法的要点是删了clw文件后,还得要重建一个!嘿嘿
- 解决MFC对话框类不能建立new class contain the remnants of that class
- contain remnants of that class
- contain remnants of that class,VC++中怎样彻底删除一个由ClassWizard生成的类
- 给一个Dialog连接一个新类时总出错,说contain remnants of that class
- idea不能new java class
- The Difference of Class.forName()、Class.forName().newInstance() and New in Java
- Question 30: What is the order of destructor calls for an object of class Y inherited from class X that has an object of class A
- 不能被忽略的关联类 The Importance of Association Class
- Factory methods are static methods that return an instance of the native class(保护CONSTRUCTOR)
- The class hierarchy of Gears
- The Meaning of Class Definitions
- The Methods of class Object
- idea 大姨妈之不能建立class
- the source attachment does not contain the source for the file xxx.class无法关联到某个类
- the source attachment does not contain the source for the file xxx.class无法关联到某个类
- Question 26: Which of the following options describe the expected overhead for a class that has 5 virtual functions?
- 08.09.19 (You can not insert a new class with the name of CAux )
- Base class does not contain a constructor that takes '0' argument
- cocos3——3.触屏事件
- 希尔排序(ShellSort)
- flex actionscript读取外部 (服务端) XML文件方式
- 2014再见,感谢你给我好的开始
- Twemproxy来自Twitter的Redis代理
- 解决MFC对话框类不能建立new class contain the remnants of that class
- 一点儿随想
- 轻松入门easyui(二)效果展示
- 使用 Codec Engine 的示例应用程序
- unity学习之GUI登陆界面
- 轻松入门easyui(三)效果展示
- JZ2440开发板学习------中级(二十五:下)
- 我的2014-想说的太多
- Ubuntu 创建开机自启动脚本的方法