Quote Originally Posted by dudeomanodude View Post
I'll definitely give you credit for the attempt.

However there is a catch to this, including windows.h adds how many lines of code underneath? So then what's the difference fundamentally between using borrowed code from the STL, or borrowing code from windows.h?

Either way, you've ended up doing what you originally preached against, borrowing code.

EDIT: for a hypothetical challenge, do like in systems programming, and use no headers of any kind, only core language functionality, in under 86 or 83 lines. I dare anyone out there...
As I stated, the only reason for using window.h was for the BOOL typedef's, which I then prceeded to implement using few enough lines that it woudl still be less than 86 lines. If I wanted to be anal I could of ocurse strip out the whitespace btu I chose to implement it in readable form.