• ### Popular Now

• 13
• 14
• 27
• 9
• 9

#### Archived

This topic is now archived and is closed to further replies.

# (HBRUSH)GetStockObject (BLACK_PEN) error...

This topic is 5682 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

i use this on winxp it works fine.. but today i got back to school, SHITTT, and i had my computer science class i was testing a simple window.. just to show.. and when i tried to regiter it couldnt because of this... then i set it to null it worked just fine.. anyone experienced the same problem ???? the pc has win98
Metal Typhoon

##### Share on other sites
Shouldnt that be:

  (HBRUSH)GetStockObject(BLACK_BRUSH);

???

##### Share on other sites
hum... true.. i think i wrote wrong.. but in the atual program i didn't it wouldn't even compile right ....

Metal Typhoon

[edited by - Metal Typhoon on August 26, 2002 11:15:00 PM]

##### Share on other sites
Using BLACK_PEN worked as well as BLACK_BRUSH. But using BLACK_BRUSH works on my Win98, 98se, and XPpro boxes.

[edited by - xds4lx on August 26, 2002 11:16:57 PM]

##### Share on other sites
quote:
Original post by xDS4Lx
Using BLACK_PEN worked as well as BLACK_BRUSH. But using BLACK_BRUSH works on my Win98, 98se, and XPpro boxes.

[edited by - xds4lx on August 26, 2002 11:16:57 PM]

yeah kinda strange... it didn''t work on win98.. i mean the BLACK_PEN .... i didn''t know anyhting about it.. learned something more :D

Metal Typhoon