cannot convert from 'void *' to 'struct HPEN__ *'??????HELP!
old_pen = SelectObject(hgdc, black_pen);
error C2440: ''='' : cannot convert from ''void *'' to ''struct HPEN__ *''
Conversion from ''void*'' to pointer to non-''void'' requires an explicit cast
Please help!
remember I''m a newbie.
the Particle Projection Cannon fires a shimmering blue bolt, much like a cross between lightning and a sine wave that ripples along its path.
You need to cast the void pointer (void*) to whatever type you are using, for example an HPEN*.
So, old_pen = (HPEN*)SelectObject(hgdc, black_pen); would probably work.
-Marc
So, old_pen = (HPEN*)SelectObject(hgdc, black_pen); would probably work.
-Marc
Aplogies for the repeated post. Go and tell my ISP www.blueyonder.co.uk to get some fucking webcaches that work properly please.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement