Im getting the following error when using the code below
code: HBITMAP hbmOld = SelectObject(hdcMem, g_hbmBall);
error: 'initializing' : cannot convert from 'void *' to 'struct HBITMAP__ *'
Conversion from 'void*' to pointer to non-'void' requires an explicit cast
I'm trying to load a bitmap and I am following first gdi tutorial on winprog.org. Can someone please tell me why I'm getting this error and how to fix it or where I can find another tutorial on the gdi?