开发者

object declare in vc++

a.hbrBackground=GetStockObject(WHITE_BRUSH);

error: cannot convert from 'void *' to 'struct HBRUSH__ ' Conversion from 'void' to pointer to non-'void' requires an explicit cast开发者_如何学Go

Cannot execute the above code in vc++

Please check the code.


That's normal for GetStockObject. You just need to cast it

a.hbrBackground = (HBRUSH) GetStockObject(WHITE_BRUSH);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜