Reputation: 1458
I have a C++ project including dialog resources, now i want to add a new dialog (e.g testdialog) and i get error on this line enum {IDD = IDD_TESTDIALOG} in testdialog.h file. I have checked include directories and atlmfc is there, i am able to create a new Dialog based MFC application, cant figure out why this is happening, need help Regards
Upvotes: 0
Views: 161
Reputation: 1
It looks like the compiler can't find IDD_TESTDIALOG. Make sure you have #included resource.h.
Upvotes: 0
Reputation: 10425
IDD_TESTDIALOG is defined in resource.h, so resource.h has to be #included before your testdialog.h.
Upvotes: 1