Test environment: Windows7 32bit, vc++6.0
It is convenient to add classes in vc++6.0, but deleting a class is less intuitive. If you want to delete a class, you only need to do this:
- In source files and header files in FileView, remove the. cpp and. h files for the class, respectively (click the file, and then press DELETE to remove it, and the file is removed from the project only and not in the project directory)
- Close vc++6.0, and then delete the. clw file under the project directory, and the. cpp and. h files for the class
- Restart vc++6.0, select ClassWizard in view, and then enter the project name to rebuild the. clw file.
Note: The above method is only applicable to vc++6.0, so the reason for this awkward operation is due to the vc++6.0 bug, for the other version only need to do the first step.
The. clw file records the class information, and if a class is missing in ClassView, the file is regenerated. Method: Delete This file, click "ClassWizard", according to the prompt to enter the project name on it;
The. ncb file records the prompt information for the class, and if the prompt for the member functions and variables of the class is missing, regenerate the file, as in the same way;
How to completely remove a class in MFC