How come I got the following error when including my dialog1.h file twice in separate files.
The compiler brakes at:
class CDialog1 : public CDialog
{
// Construction
public:
CDialog1 (CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CADTTOSIMDialog)
enum { IDD = IDD_ CDIALOG1 }; // BRAKES HERE AND GIVES THE ERROR: error C2065: 'IDD_DIALOG1' : undeclared identifier
//}}AFX_DATA
…
};
…
This error is followed by the “error C2057: expected constant expression”
Thanks
The compiler brakes at:
class CDialog1 : public CDialog
{
// Construction
public:
CDialog1 (CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CADTTOSIMDialog)
enum { IDD = IDD_ CDIALOG1 }; // BRAKES HERE AND GIVES THE ERROR: error C2065: 'IDD_DIALOG1' : undeclared identifier
//}}AFX_DATA
…
};
…
This error is followed by the “error C2057: expected constant expression”
Thanks