Cover of Programming Windows

Programming Windows

the Microsoft guide to programming for the MS-DOS : presentation manager, Windows 2.0 and Windows/386

by Charles Petzold · first published 1988

69mentions
31recommended by
61HN commenters
2008–2026first – last mentioned

51% recommend48% neutral2% critical

Why HN recommends it

Clear, down-to-earth introduction to Win32 programming in C that gets readers with basic C writing Windows apps quickly; praised as the authoritative reference and for precise, no-fluff technical writing.

Summarised by Claude from recommending comments

Affiliate links. As an Amazon Associate I earn from qualifying purchases.

Mentions per year

140 2007: 0 mentions2008: 1 mention2009: 0 mentions2010: 2 mentions2011: 0 mentions2012: 1 mention2013: 0 mentions2014: 5 mentions2015: 0 mentions2016: 2 mentions2017: 5 mentions2018: 2 mentions2019: 5 mentions2020: 3 mentions2021: 5 mentions2022: 14 mentions2023: 10 mentions2024: 2 mentions2025: 2 mentions2026: 10 mentions200720172026

What Hacker News says

  • morninglight · Jun 10, 2022 · Recommends

    "Programming Windows" exposed the simplicity behind the Windows architecture. If you had even a smattering of C experience, Petzold could get you writing Windows applications the same day you opened his book. He triggered…

    on ““Code” 2nd Edition” ↗
  • danibx · Sep 11, 2010 · Recommends

    …So far, the best Books and articles I have found are: Building Interactive Systems: Principles for Human-Computer Interaction, from Dan Olsen Professional Java User Interfaces, from Mauro Marinilli Programming Windows, from Charles Petzold Thing-Model-View-Editor, from Trygve M. H. Reenskaug Cocoa Framework documentation, from Apple Designing Interactive Systems II, lectures from RWTH, available on Itunes U http://deimos3.apple.com/WebObjects/Core.woa/Browse/rwth-aachen.de.1778590405.01778590407.1837303882?i=1131324278…

    on “Ask HN: Book recommendations for GUI development” ↗
  • rpeden · Aug 17, 2017 · Recommends

    …different on my own time has helped rekindle my love of programming. I've picked up all of Charles Petzold's old books on Windows programming, and I've enjoyed them a lot. It helps that most of the code in 'Programming Windows 3.1' will actually compile in VS2017 on Windows 10 with very few changes. So on a similar note, I'm looking for equivalent books on classic MacOS programming I can look for online or buy used on Amazon,…

    on “Ask HN: Where can I find classic MacOS programming books and tools?” ↗
  • GnarfGnarf · Aug 8, 2021 · Recommends

    Charles Petzold is a God amongst programmers. His "Programming Windows 3.1" book was the foundation of my company. Still going strong twenty-five years later. I loathe MS Edge. In spite of explicitly setting my default file associations to my preferred applications, every other…

    on “Screw You, Microsoft Edge” ↗
  • GnarfGnarf · Sep 8, 2022 · Recommends

    Charles Petzold is a God of technical documentation. His "Programming Windows" is a masterpiece of clarity and exposition. Also was the foundation of my 27-year old company. I wish he would write a book on TCP/IP and Internet Protocols.

    on “The Changes for the 2nd Edition of “Code”” ↗
  • bluedino · Jun 10, 2022 · Recommends

    My favorite Petzold book is 'Programming Windows 95'

    on ““Code” 2nd Edition” ↗
  • FreakLegion · May 29, 2012 · Recommends

    Petzold is absolutely right (and his Programming Windows is still a fantastic resource). It's just that not all technical books live up to the high bar he's set for them. Most technical books are JATBs ("Just Another Technical Book"), but every once in a while…

    on “Why read and write tech books?” ↗
  • ww520 · Sep 15, 2018 · Recommends

    I still remember the first Windows programming book I read. It's Charles Petzold's Programming Windows. It was amazing. Really showed how Windows work.

    on “Retirement and Realignment” ↗
  • imstate · Mar 5, 2021 · Recommends

    Hey, I the win32 api looks harder than it is. Most of it is reading documentation. I suggest the book "Programming Windows" by Charles Petzold. If you know basic C, the win32 api is pretty well documented.

    on “Official WinRT+Win32 Crate for Rust” ↗
  • GrumpyYoungMan · Feb 28, 2022 · Recommends

    …simplest of dialogs. I tried. The MSDN documentation doesn't quite cut it. TheOldNewThing by Raymond Chen is a must-read to get it right." If it's helpful, I'd like to mention that Charles Petzold's "Programming Windows" has been pretty much the reference for writing Win32 apps since the '90s. (It's the same person that wrote "Code" and "The Annotated Turing".) You probably want the 5th edition as that's the last pure…

    on “Win32 is the stable Linux userland ABI (and the consequences)” ↗
  • bornfreddy · Jun 5, 2022 · Recommends

    Also by Charles Petzold: Programming Windows. Not sure how the new editions fare, but the first (second maybe?) was great.

    on “Ask HN: Examples of good technical writing?” ↗
  • tzs · Aug 7, 2022 · Recommends

    …running and reviewing the sample programs provided. I learned a lot about Windows programming and really enjoyed the read. I stopped writing Windows programs when Petzold stopped doing new editions of "Programming Windows". I'm not actually sure whether or not what was covered in his last one, Windows 8 using C# and XAML, still works on Windows 10 and 11, or if it does whether or not that is all you need.

    on ““Code” 2nd Edition Now Available” ↗
  • tzs · Jul 24, 2017 · Recommends

    …turnoff. Seconded. The previous times I wanted/needed to do Windows development, the first step was ridiculously simple: BUY book FROM bookstore WHERE author = 'Charles Petzold' AND title CONTAINS 'Programming Windows' ORDER BY publication_date DESC LIMIT 1 Heck, that even worked when I briefly thought I'd need to do some OS/2 programming. Just change 'Programming Windows' to 'OS/2 Presentation Manager'. Nowadays,…

    on “Android Killed Windows Phone, Not Apple” ↗
  • sjmulder · Sep 9, 2017 · Recommends

    I wish there was a more modern version of Programming Windows by Charles Petzold that I could recommend for its great, down to Earth introduction to Win32, but unfortunately the fifth edition from 1998 was the last of its kind. If you're OK with the dated context…

    on “Beej's Guide to C Programming (2007)” ↗
  • discreteevent · Dec 3, 2021 · Recommends

    I started programming Windows 3.1 in C with the Charles Petzold book. (I have a sentimental attachment to it because of that). Then NT came out, what an operating system! But just a few months ago I switched the home PC to linux. Windows…

    on “Windows urges users to use Bing same way as urgent security warnings” ↗

Keyboard shortcuts

/
Focus search
j / k
Next / previous book
Enter
Open focused book
Esc
Close / go back
g h
Go to Home
g t
Go to Top all-time
g m
Go to Most recommended
g r
Go to Rising
g f
Go to For You
?
Show this help