在类中已定义了public变量展示undeclared identifier
在类中已定义了public变量显示undeclared identifier
各位大神求教!
为什么已经在class CAboutDlg : public CDialog中定义了
protected:
int iop;
int nN;
int nOK;
而在BOOL CExpDlg::OnInitDialog()中初始化
nN=0;
nOK=0;
却出现了
c:\users\bingsmile\desktop\exp\expdlg.cpp(142) : error C2065: 'nN' : undeclared identifier
c:\users\bingsmile\desktop\exp\expdlg.cpp(143) : error C2065: 'nOK' : undeclared identifier
???
感激不尽!!
------解决方案--------------------
一个是CAboutDlg,一个是CExpDlg,它俩有啥关系啊???
------解决方案--------------------
你的变量定义在了其他类的声明中了
各位大神求教!
为什么已经在class CAboutDlg : public CDialog中定义了
protected:
int iop;
int nN;
int nOK;
而在BOOL CExpDlg::OnInitDialog()中初始化
nN=0;
nOK=0;
却出现了
c:\users\bingsmile\desktop\exp\expdlg.cpp(142) : error C2065: 'nN' : undeclared identifier
c:\users\bingsmile\desktop\exp\expdlg.cpp(143) : error C2065: 'nOK' : undeclared identifier
???
感激不尽!!
------解决方案--------------------
一个是CAboutDlg,一个是CExpDlg,它俩有啥关系啊???
------解决方案--------------------
你的变量定义在了其他类的声明中了