新手提问:
类里面有这样的几句:
// Dialog Data
//{{AFX_DATA(elevator)
enum { IDD = _UNKNOWN_RESOURCE_ID_ };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
编译的时候有两个错:
error C2065: '_UNKNOWN_RESOURCE_ID_' : undeclared identifier
error C2057: expected constant expression两个错指的是enum { IDD = _UNKNOWN_RESOURCE_ID_ };这句有错?
请问怎么改?
谢谢了!
类里面有这样的几句:
// Dialog Data
//{{AFX_DATA(elevator)
enum { IDD = _UNKNOWN_RESOURCE_ID_ };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
编译的时候有两个错:
error C2065: '_UNKNOWN_RESOURCE_ID_' : undeclared identifier
error C2057: expected constant expression两个错指的是enum { IDD = _UNKNOWN_RESOURCE_ID_ };这句有错?
请问怎么改?
谢谢了!
#include "resource.h"
或者
.cpp
#include "xxxapp.h"