-
October 16th, 2009, 09:56 AM
#1
C2065 error: undeclared identifier
Hi there:
I create a simple dialog based app using MFC wizard, during the compilation, an "undeclared identifier" C2065 error is pointing to this line:
enum { IDD = IDD_VIDEO_CONVERSION_MODULE_DIALOG };
However, IDD_VIDEO_CONVERSION_MODULE_DIALOG should be automatically generated by the compiler, and it's indeed there in the resource.h.
To bypass this problem, I had to redefined the ID like this in the source file:
#ifndef IDD_VIDEO_CONVERSION_MODULE_DIALOG
#define IDD_VIDEO_CONVERSION_MODULE_DIALOG 102
#endif
Is this a bug or I missed something?
I am using Visual Studio 2008 VC.NET
Thanks a lot!
Sway
-
October 16th, 2009, 10:14 AM
#2
Re: C2065 error: undeclared identifier
Make sure resource.h is included before your class definition.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|