Whenever I include mydialog.h in more then one file I get:
C2057: expected constant expression
C2065: 'IDD_CLOUDS_DIALOG' : undeclared identifier
How can I fix this?
This is a discussion on Problem when including Dialog Class File in more then one file in MFC within the C++ Programming forums, part of the General Programming Boards category; Whenever I include mydialog.h in more then one file I get: C2057: expected constant expression C2065: 'IDD_CLOUDS_DIALOG' : undeclared identifier ...
Whenever I include mydialog.h in more then one file I get:
C2057: expected constant expression
C2065: 'IDD_CLOUDS_DIALOG' : undeclared identifier
How can I fix this?
some code
You may need to #include your resource file before you #include your mydialog.h file, because thats probably where IDD_CLOUDS_DIALOG is defined.Originally posted by WiKiDJeFF
Whenever I include mydialog.h in more then one file I get:
C2057: expected constant expression
C2065: 'IDD_CLOUDS_DIALOG' : undeclared identifier
How can I fix this?
-Grunt (Malek)
ye that was the problem Malek, thx.