compiler not recognizing dialog ID
-
Any ideas why the compiler is telling me it doesn't recognize the ID of the dialog that VC++ just created? I mean, I just made the resource for "IDD_DIALOG1", then created a new class for it, and when I try to build that class has an error in the generated .h file, at the line: enum { IDD = IDD_DIALOG1 } saying the ID is an undeclared identifier. that's lame. any ideas how to get rid of this? thanks, Jake
-
Any ideas why the compiler is telling me it doesn't recognize the ID of the dialog that VC++ just created? I mean, I just made the resource for "IDD_DIALOG1", then created a new class for it, and when I try to build that class has an error in the generated .h file, at the line: enum { IDD = IDD_DIALOG1 } saying the ID is an undeclared identifier. that's lame. any ideas how to get rid of this? thanks, Jake
Check if in the resource.h header file you have that ID. And if in the header of your Dlg class you have the include of the resource.h Cheers!!!! Carlos Antollini.
-
Check if in the resource.h header file you have that ID. And if in the header of your Dlg class you have the include of the resource.h Cheers!!!! Carlos Antollini.
The ID's are in resource.h, which is included only in my CWinApp-derived class. The app's header is included automatically in every cpp file in the project. So, when I compile the class in question, it picks up the include and works fine, but when I build the project, it apparently looks at the headers first and gives me trouble. should i include the app's header in the problem header, instead of in it's cpp file?
-
The ID's are in resource.h, which is included only in my CWinApp-derived class. The app's header is included automatically in every cpp file in the project. So, when I compile the class in question, it picks up the include and works fine, but when I build the project, it apparently looks at the headers first and gives me trouble. should i include the app's header in the problem header, instead of in it's cpp file?
First. Try to include the header in the header of the class dialog. Second. Check if the value of IDD_DIALOG1 is correct, or if is dupplicated. If the problem persist, try to sen me the project by mail. Good luck!!!! Carlos Antollini.