CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 11 of 11

Threaded View

  1. #1
    Join Date
    Nov 2009
    Posts
    128

    Question dialog id undeclared identified

    i have created win32 application with MFC in a shared Dll.

    i have include a dialog with ID = IDD_DIALOG.i have created class for dialog which is CSettingsDlg derived from CDialog.
    and included header

    Code:
           class CSettingsDlg : public CDialog
    {
    	DECLARE_DYNAMIC(CSettingsDlg)
    
    public:
    	CSettingsDlg(CWnd* pParent = NULL);   // standard constructor
    	virtual ~CSettingsDlg();
    
    // Dialog Data
    	enum { IDD = IDD_DIALOG1 };// error C2065: 'IDD_DIALOG1' : undeclared identifier
    
    protected:
    	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
    
    	DECLARE_MESSAGE_MAP()
    };
    i am getting an error :
    error C2065: 'IDD_DIALOG1' : undeclared identifier

    what should i do ?
    Last edited by dskp; March 2nd, 2010 at 07:44 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured