Advertisement

strange error...?

Started by April 28, 2000 06:24 PM
1 comment, last by gameprogrammerwiz 24 years, 7 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]
you have to typecast to HBRUSH:

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


email: chickawow@netzero.net

annex software: http://annexsoftware.cjb.net
Advertisement
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