帮忙看下两个写法怎么运行结果不一样
CBrush brush;brush.CreateSolidBrush(crFore);
//将画刷选入DC
CBrush *pOldBrush = pDC->SelectObject(&brush);
CBrush *brush;
brush->CreateSolidBrush(crFore);
//将画刷选入DC
CBrush *pOldBrush = pDC->SelectObject(brush);
编译能通过,但第二个就显示不出来第一个的效果,这是怎么回事啊