孙鑫第四课遇到问题了,求助。。
和教程上一样添加了这两上函数;void CDraView::OnLButtonDown(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call default
pt=point;
CView::OnLButtonDown(nFlags, point);
}
void CDraView::OnLButtonUp(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call default
HDC hdc;
hdc=::GetDC(m_hWnd);
MoveToEX(hdc,pt.x,pt.y,NULL);
LineTo(hdc,point.x,point.y);
::ReleaseDC(m_hWnd,hdc);
CView::OnLButtonUp(nFlags, point);
}
视频上能运行,我的却不能运行,错误提示如下:
--------------------Configuration: dra - Win32 Debug--------------------
Compiling...
draView.cpp
C:\Program Files\Microsoft Visual Studio\MyProjects\dra\draView.cpp(118) : error C2065: 'MoveToEX' : undeclared identifier
Error executing cl.exe.
dra.exe - 1 error(s), 0 warning(s)
是不是我安装有问题?哪位帮我看下啊。谢谢。