Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pulling my hair out over dialogs

Status
Not open for further replies.

tas2826

Programmer
Jul 6, 2005
26
US
My dialog has a dialog data section as follows

// Dialog Data
//{{AFX_DATA(CSpecialPayeeWarningDialog)
enum { IDD = IDD_SPECIALPAYEE_WARNING };
CStatic m_payeeNames;
//}}AFX_DATA

However, when I compile the dialog I get the error.

C:\Projects\ta_root\TaGui\SpecialPayeeWarningDialog.h(81) : error C2065: 'IDD_SPECIALPAYEE_WARNING' : undeclared identifier

The .rc file and resource header seem to be correct. This one has me stumped.

Any ideas on where else to look? Thanks in advance for the help.
 
resource.h got me again. I did not have it included in my .cpp file. That fixed it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top