hansw77041
asked on
error C2057: expected constant expression
After making a dialog using and using the Wizard to make a class The code compiles OK.
When I include the header file for this new class #include "mydialog.h" in CMainFrame the coimpiler complains.
error C2065: 'IDD_DIALOG_1' : undeclared identifier
error C2057: expected constant expression
When I include the header file for this new class #include "mydialog.h" in CMainFrame the coimpiler complains.
error C2065: 'IDD_DIALOG_1' : undeclared identifier
error C2057: expected constant expression
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I have no idea why including the #include "resource.h" in the Cmydialog get rid of the error but it does.