Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Stop being so dramatic. The exact same code will still compile today, and you'll get your window in 10 lines or whatever. And anyway, it's not a window - it's a message box.

(You could probably put an honest-to-goodness window up in 10 lines, but you'd have to squeeze the code together a bit more than most reasonable people would consider permissible, and/or it'd be missing a few key aspects. But I bet 30 lines would be plenty for a full-on one though, with its own custom window proc that has a WM_PAINT handler that does something and a WM_CREATE handler that pops a context pointer in GWLP_USERDATA and a WM_DESTROY handler than frees the context. And a message loop. The code today would be basically exactly the same as it was in the Windows 95 days.)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: