Solved

undeclared identifier?

Posted on 2001-06-09
1
830 Views
Last Modified: 2013-11-20
Hi experts,

I inserted a dialog box CProgressDlg into my MFC and compiling showed no problem. Then I do #include "ProgressDlg.h" in another cpp file of the same project but compilling showed me error:
C:\..\ProgressDlg.h(21) : error C2065: 'IDD_ProgressDlg' : undeclared identifier
for the line
     enum { IDD = IDD_ProgressDlg };

It is very strange....I did the similar job many times...it must be very simple, but I need your help!
0
Comment
Question by:learn
1 Comment
 
LVL 1

Accepted Solution

by:
nrajan earned 50 total points
ID: 6171345
Also include resource.h into the .cpp file before where you included ProgressDlg.h Like

#include "resource.h"
#include "ProgressDlg.h"
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question