void CEx03aView::OnDraw(CDC* pDC)
{
//CEx03aDoc* pDoc = GetDocument();
//ASSERT_VALID(pDoc);
pDC->TextOut(0,0,"hello world!!");
pDC->SelectStockObject(Gray.BRUSH);
pDC->Ellipse(CRect(20,40,100,120));
// TODO: add draw code for native data here
}
--------------------Configuration: ex03a - Win32 Debug--------------------
Compiling...
ex03aView.cpp
C:\vcpp32\ex03a\ex03aView.cpp(61) : error C2065: 'Gray' : undeclared identifier
C:\vcpp32\ex03a\ex03aView.cpp(61) : error C2228: left of '.BRUSH' must have class/struct/union type
Error executing cl.exe.
Creating browse info file...ex03a.exe - 2 error(s), 0 warning(s)