none
error C2065: 'IDD_DEVICE_DIALOG' : undeclared identifier

    Question

  • I have a dialog based MFC application. I have just added another resource (a dialog and have given it the ID IDD_DEVICE_DIALOG). I would like to this second dialog from the main dialog so I have associated a class ( CDeviceTransporterDlg) with the new dialog. I get this error though when I just try to create an instance of the class :

     

    error C2065: 'IDD_DEVICE_DIALOG' : undeclared identifier

     

    The error point to the line with;

    // Dialog Data

    enum { IDD = IDD_DEVICE_DIALOG };

    All this is IDE generated code. What could be wrong. I am using VS2005.

     

    Friday, June 30, 2006 2:25 PM

Answers