O, GetPen is a function I wrote, it works fine. But what I don't understand, is that it gives me this error when i compile:Code:HPEN pen_use; //pen to use HPEN pen_old; pen_use = GetPen(1,GetSysColor(COLOR_BTNSHADOW)); pen_old = SelectObject(m_hDC, pen_use); SelectObject(m_hDC, pen_old); DeleteObject(pen_use);
I went on msdn and they even have an example doing the same thing, and they shay it shyould workd. Help? ThanksCode:error C2440: '=' : cannot convert from 'void' to 'struct HPEN__ *' Expressions of type void cannot be converted to other types
Amon Ra




Reply With Quote