Ali Kazmi
Ali Kazmi

Reputation: 1458

how to add dialog resource in exsisting C++ Project

I have a C++ project including dialog resources, now i want to add a new dialog (e.g testdialog) and i get error on this line enum {IDD = IDD_TESTDIALOG} in testdialog.h file. I have checked include directories and atlmfc is there, i am able to create a new Dialog based MFC application, cant figure out why this is happening, need help Regards

Upvotes: 0

Views: 161

Answers (2)

user3181628
user3181628

Reputation: 1

It looks like the compiler can't find IDD_TESTDIALOG. Make sure you have #included resource.h.

Upvotes: 0

ScottMcP-MVP
ScottMcP-MVP

Reputation: 10425

IDD_TESTDIALOG is defined in resource.h, so resource.h has to be #included before your testdialog.h.

Upvotes: 1

Related Questions