这怎么回事?
我用MFC控件做的小程序,但编译不通过,大家帮我看看#include "stdafx.h"
#include "TEST.h"
#include "TESTDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
。。。。。。。。。。。。
void CTESTDlg::OnOk6()
{
cstatic* static1=(cstatic*)getdlgltem(idc_static1);
static1->setwindowtext("明日科技");
}
void CTESTDlg::OnOk7()
{
if(!iswindow(m_dynamic.m_hwnd))
m_dynamic.create("欢迎你!",ws_child,crect(110,50,180,100),this,1525);
m_dynamic.showwindow(sh_show);
}
出错:
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\COMMON\MSDEV98\MYPROJECTS\TEST\TESTDlg.cpp(84) : error C2065: 'IDC_BUTTON2' : undeclared identifier
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\COMMON\MSDEV98\MYPROJECTS\TEST\TESTDlg.cpp(184) : error C2065: 'cstatic' : undeclared identifier
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\COMMON\MSDEV98\MYPROJECTS\TEST\TESTDlg.cpp(184) : error C2065: 'static1' : undeclared identifier