GetDC() Unhandled exception问题
CWnd* pWnd = GetDlgItem(IDC_THUITU1);
// 指针
CDC* pDC = pWnd->GetDC();
pWnd->Invalidate();
pWnd->UpdateWindow();
编译连接正常,单步调试,程序执行过程中运行到 CDC* pDC = pWnd->GetDC();出现问题
Unhandled exception in ***.exe(MFC42D.DLL):0xC0000005:Access Violation。谢谢!