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