在2010中为“Dialog”资源,“右键”添加“类”后,提示“未定义”???
添加类后,头文件(Groupbox.h)中的代码:
#pragma once#ifdef _WIN32_WCE
#error "COlePropertyPage is not supported for Windows CE."
#endif // CGroupbox : Property page dialogclass CGroupbox : public COlePropertyPage
{
DECLARE_DYNCREATE(CGroupbox)
DECLARE_OLECREATE_EX(CGroupbox)// Constructors
public:
CGroupbox();// Dialog Data
enum { IDD = IDD_Groupbox };这里提示:“identifier "IDD_Groupbox" is undefined”(标示符“IDD_Groupbox”未定义)。
这是VS2010自动生成的啊,怎么会发生这种错误呢?而且还有个枚举。
是VS2010的问题吗?
// Implementation
protected:
virtual void DoDataExchange(CDataExchange* pDX);        // DDX/DDV support// Message maps
protected:
DECLARE_MESSAGE_MAP()
};