If you are working within the constraints of a project set up as a console mode project, its likely the project isn't trying to link against gdi32.lib, which is where, I believe, CreateSolidBrush() would be located. If that's the case, you need to explicitely link against that export lib or use a GUI based project, which would automatically link against gdi32.lib, user32.lib, and kernel32.lib.