Sezhian
Sezhian

Reputation: 333

error C2065: 'IDD_ ' : undeclared identifier

I am creating Class using MFC class wizard in VS 2008, Choosing Base class as CProperty Page, After finish wizard file created but i getting error in this line enum { IDD = IDD_APPLICATION };

Error : error C2065: 'IDD_APPLICATION ' : undeclared identifier

Upvotes: 2

Views: 9466

Answers (2)

hawkpatrick
hawkpatrick

Reputation: 411

Perhaps you have to change MFC Mode to "true", you find that on the properties page of your .rc file. (This helped me)

Upvotes: 0

sean e
sean e

Reputation: 11925

As cpx asked, have you included resource.h into the header file of the new class?

More importantly, have you created a dialog resource in your resource file with the id IDD_APPLICATION?

Upvotes: 3

Related Questions