Quote Originally Posted by megafiddle View Post
I've been using that same global hDc for all my drawing. Would have never known,
so far, that it wasn't actually "working". I only caught the uninitialized hBrush while
looking for something else.
Definition of "Undefined Behaviour"...
1) Code that works perfectly until someone else tries to use it.
2) Code that works perfectly until you show it to your boss.
3) Bugs and problems that only show up after you've taken delivery of 50,000 CDs.