How to completely remove a class in MFC

Source: Internet
Author: User

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:

  1. 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)
  2. Close vc++6.0, and then delete the. clw file under the project directory, and the. cpp and. h files for the class
  3. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.