strange error...?

Started by
1 comment, last by gameprogrammerwiz 23 years, 12 months ago
this line of code has worked before...i have no idea whats wrong now: wc.hbrBackground = GetStockObject( BLACK_BRUSH ); this is the error: error C2440: ''='' : cannot convert from ''void *'' to ''struct HBRUSH__ *'' Conversion from ''void*'' to pointer to non-''void'' requires an explicit cast whats wrong here?
==============================
whats a signature?
htm[s]l[/s]
Advertisement
you have to typecast to HBRUSH:

wc.hbrBackground = (HBRUSH) GetStockObject(BLACK_BRUSH);


email: chickawow@netzero.net

annex software: http://annexsoftware.cjb.net
thanks, that fixed it. hey, you''re the guy/girl i emailed yesterday.
==============================
whats a signature?
htm[s]l[/s]

This topic is closed to new replies.

Advertisement