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.