strange error...?
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]
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
wc.hbrBackground = (HBRUSH) GetStockObject(BLACK_BRUSH);
email: chickawow@netzero.net
annex software: http://annexsoftware.cjb.net
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement