Solved

undeclared identifier?

Posted on 2001-06-09
1
839 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

631 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