'undeclared identifier' Error due to a dialog resource ID
Posted on 2006-05-22
I have a class derived from CPropertySheet, called CMyPropertySheet. In the header file for this class, I have an include statement for each property page that will reside in my property sheet; That code looks like this:
I have created a dialog for each property page. I have assigned the resource IDs of 'IDD_PAGE1_DIALOG', 'IDD_PAGE2_DIALOG', and 'IDD_PAGE3_DIALOG'. I have created a class for each of these property pages. I did this with the class wizard. All this went fine. However, when I build (f7) my project, I get the following 2 error messages in the header file FOR EACH of my property page classes:
page1.h(24) : error C2065: 'IDD_PAGE1_DIALOG' : undeclared identifier
page1.h(24) : error C2057: expected constant expression
So, in total, I get 6 error messages (2 for each property page resource ID).
Thus, it seems as though the resource IDs for each of my property page dialogs are not being found. I can look in the resource.h file and find each property page's resource ID. Each page DOES INDEED have a valid resource ID.