|
From: metalseb <met...@fr...> - 2002-09-23 17:33:20
|
> hOldPen=SelectObject(hdc,hPen); //this is where I > get error message Well, SelectObject returns an HGIOBJ pointer, just cast the return value like this : hOldPen=(HPEN)SelectObject(hdc,hPen); And it should compile OK. Note that some compilers do the cast by themselves. This is not the case with MingW. And I think this is *really* better. -- Seb |