The path to mfc learning-how to delete new variables through controls, the path to mfc

Source: Internet
Author: User

The path to mfc learning-how to delete new variables through controls, the path to mfc

People in the School of mfc will encounter such a problem (for example, me). When I create an mfc program in the book, the variable type is wrong when the variable is added to the control, but the variable name is correct, then, if you want to add a Correct prompt "this object already exists", you will be silly. I don't know how to delete this variable.

The development tool provides the function of adding a variable but does not delete it. Therefore, if you want to delete an incorrect variable, you must manually find the variable in the code and then manually delete it. the specific method is described below.

A new variable exists in two locations. One is the project name + Dlg in the header file. the other is the project name + Dlg in the source file. cpp file. For example, if my project name is abc, the variable will exist in abcDlg. h and abcDlg. cpp, you can open these two files through the resource manager.

Then, use Ctrl + f in each file to search for the name of the variable you want to delete, and then delete the location where the variable is located.

Related Article

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.