如何解决“symbol not found" ??
小弟初学数据库,在书上抄了个程序,其中有一个函数出现了问题。程序如下:
void CADO1View::OnSize(UINT nType, int cx, int cy)
{
int iHeight,iWidth;
CRect rect;
COleDBRecordView::OnSize(nType, cx, cy);
m_adoDC1.GetClientRect(rect);
iHeight=rect.Height();
iWidth=rect.Width();
m_adoDC1.MoveWindow(cx,cy,iWidth,iHeight,TRUE);
m_dataGrid1.MoveWindow(0,0,cx,cy-iHeight,TRUE);
}
compile时没有问题,但执行时提示错误,debug后,提示:
symbol iHeight not found
symbol iWidth not found
不知道是怎么回事,哪位帮忙解决一下!