void CEx03aView::OnDraw(CDC* pDC)
{
CEx03aDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc); // TODO: add draw code for native data here
}CEx03aDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
这两行代码的作用是什么?
能够解释下吗?
{
CEx03aDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc); // TODO: add draw code for native data here
}CEx03aDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
这两行代码的作用是什么?
能够解释下吗?
ASSERT_VALID(pDoc);//确保pDoc不为0,DEBUG时检错用,RELEASE时,跟没有一样