cannot convert from...

When i write (all variables are corectly defined) :

hBitmap = SelectObject(hMemDC, hOldBitmap);

and then compile, an error reported:
error C2440: '=' : cannot convert from 'void *' to 'struct HBITMAP__ *'
        Conversion from 'void*' to pointer to non-'void' requires an explicit cast

Whats problem?

Thanks.
LVL 1
ViestursAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
nietodConnect With a Mentor Commented:
1 point?   50 is considered easy...

hBitmap = (HBITMAP) SelectObject(hMemDC, hOldBitmap);
0
 
ViestursAuthor Commented:
I have a lot of questions, but not points. :)
0
 
nietodCommented:
You should have about 150 points left.  That is enough to ask several reasinably "priced" questions.
0
All Courses

From novice to tech pro — start learning today.