Depressed, depressed.
Today open a previous small project, compiling Error C2065: 'IDD_DIALOG_MAIN': undeclared Identifier error. Try the name of the changing dialog box, can't do it in resource.h.
Just check the ID name of the changing the main dialog box on the Internet will also cause the following files to modify:
1. Modification of the dialog box name in RESOURCE.H
.2.enum {IDD = IDD_DIALOG_MAIN} Modification of the dialog name in the dialog box
3. Modification of the response identifier in dSW project file.
Then add resource.h, build, ok in the CPP file of the dialog!