Link to home
Start Free TrialLog in
Avatar of hansw77041
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



Avatar of hansw77041
hansw77041

ASKER

Answering my own question.
I have no idea why including the  #include "resource.h" in the Cmydialog get rid of the error but it does.


ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial