DrawLine使用时出错
代码如下
Graphics graphic(pDC->m_hDC);
Pen pen(3,RGB(255,0,0));
POINTF p={100,100};
POINTF p1={-100,102};
graphic.DrawLine(&Pen(Color(255,0,0),3),p,p1);
错误列表是
Error 63 error C2664: 'Gdiplus::Status Gdiplus::Graphics::DrawLine(const Gdiplus::Pen *,const Gdiplus::PointF &,const Gdiplus::PointF &)' : cannot convert parameter 2 from 'POINTF' to 'const Gdiplus::PointF &' e:\work_wangshuhe\rotateownship\rotateownship\drawview.cpp 327