You're writting all in lowercase, but compiler (linker etc) is case
sensitive, you shall write GetStockObject. And perhaps add some casts,
for example, (HBRUSH)GetStockObject(WHITE_BRUSH)....
philip rocker escribi=F3:
> hi I'm puzzled. I've been making some simple Windows apps (running
> Win95 on an old but otherwise reliable and virus -free machine). For
> a while they compiled and ran OK but then they started coming up with
> linker error messages - particularly inablity to find definitions
> which should be in windows.h (actually in wingdi.h, I think) - such
> as undefined 'getstockobject', 'createbrush', 'selectobject' etc.
> I've tried reinstalling DevC which works for a while but the same
> problem recurs and it's now pretty ineffective. Sometimes pasting the
> original source code into empty projects also worked - but that's
> tedious and it's also become ineffective. A few programs from the
> 'Examples' folder still compile and link successfully. I'd be
> grateful for any suggestions. ThanksPhilip
|