SetPixel in a console application not working?

Thread posted on PasteBin because this site wont let me post it for some reason :/ maybe some sort of filter to prevent XSS attacks, idk.
SetPixel((HDC)HWND_DESKTOP,  (BaseX + Index),  (BaseY + ((CrossHair_Variables::Size - 1) / 2)),

You can't cast a HWND to a HDC. To get a DC you need to use GetDC
Thank you, that worked!
Registered users can post here. Sign in or register to post.