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!

Compiler error in class created by Class Wizard.

Status
Not open for further replies.

reneb

Programmer
Aug 8, 2000
43
US
I created a dialog using the resource dialog editor and created a class derived from CPropertyPage for it in the ClassWizard. I tried including the class in a file I created myself and I get these errors from the compiler: <br><br>newsysdc1.h(24) : error C2065: 'IDD_NewSysD1' : undeclared identifier<br>newsysdc1.h(24) : error C2057: expected constant expression<br><br>The file I created compiles fine without the #include &quot;NewSysDC1.h&quot;<br>I don't want to try to fix anything myself in the NewSysDC1.h file because it was generated by the Class Wizard. The strange thing is that the&nbsp;&nbsp;NewSysDC1.cpp file compiles fine. Any ideas or suggestions? Your help is greatly appreciated. Thanks.
 
reneb,<br><br>IDD_NewSysD1 should be defined in 'resource.h', so include that in the file prior to the inclusion of newsysdc1.h<br><br>Hope this helps<br>-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top