Hello,
I am reading this tutorial: http://http://www.functionx.com/win32/Lesson01b.htm on how to set a window background color.
I have tried:
Code:
wincl.hbrBackground = (HBRUSH)CreateSolidBrush(RGB(0,255,0));
and
wincl.hbrBackground = (HBRUSH)GetStockObject(BLACK_BRUSH);
Both methods give me the following errors:
[Linker error] undefined reference to `CreateSolidBrush@4'
and
[Linker error] undefined reference to `GetStockObject@4'
I am using Dev Cpp version 4.9.9.2 and attempting to compile a known working program as a windows project.
Why can't I perform this simple operation..?!?!?!