Books by Charles Petzold

Programming Windows 6th edition Programming Windows, 6th edition
(Microsoft Press, 2012)

New edition of the classic book completely updated for for Windows 8.
Learn how to program new Windows Store applications using the
Windows Runtime, C# and XAML

Programming Windows Phone 7 Programming Windows Phone 7
(Microsoft Press, 2010)

Free thousand-page e-book now available!

The Annotated Turing The Annotated Turing
A Guided Tour through Alan Turing's History Paper on Computability and the Turing Machine

(Wiley, 2008)

Visit TheAnnotatedTuring.com for details.

3D Programming for Windows 3D Programming for Windows
Three-Dimensional Graphics Programming for the Windows Presentation Foundation

(Microsoft Press, 2007)

An exploration and elucidation of the 3D programming facilities of the Windows Presentation Foundation.

For program source code, go to the companion content page, or download individual source code files from ftp://ftp.charlespetzold.com/3DProgWin or all source code files as 3DProgWin.zip (1.1M).

.NET Book Zero

by

Charles Petzold

.NET Book Zero
What the C or C++ Programmer Needs to
Know about C# and the .NET Framework

A free on-line 267-page book in PDF and XPS formats.

Applications = Code + Markup Applications = Code + Markup
A Guide to the Microsoft Windows Presentation Foundation

(Microsoft Press, 2006)

An introduction to the Microsoft Windows Presentation Foundation (formerly code-named Avalon), including XAML.

For program source code, go to the companion content page, or download individual source code files from ftp://ftp.charlespetzold.com/AppsCodeMarkup or all source code files as AppsCodeMarkup.zip (1.65M).

Source code is also available translated to Visual Basic .NET.

Programming Microsoft Windows Forms Programming Microsoft Windows Forms
(Microsoft Press, 2005; 384 pages)

An introduction to Windows Forms programming with an emphasis on .NET 2.0.

For program source code, go to the companion content page, or download individual source code files from ftp://ftp.charlespetzold.com/ProgWinForms or all source code files as ProgWinForms.zip (422K).

Programming in the Key of C# Programming in the Key of C#: A Primer for Aspiring Programmers
(Microsoft Press, 2003; 418 pages)

A tutorial for people wishing to learn the C# programming language. No prior programming knowledge is required.

For program source code, go to the companion content page, or download individual source code files from ftp://ftp.charlespetzold.com/ProgKeyCS or all source code files as ProgKeyCS.zip (203K).

Die Kunst zu Programmieren

Die Kunst zu Programmieren ("The Art of Programming") is the German edition of Programming in the Key of C#. Normally titles of foreign editions are similar to the English titles, but this one had to be changed because the pun no longer worked: The key of C# in music is known as cis in German. The book is available from Amazon.de.

Programming Microsoft Windows with C# Programming Microsoft Windows with C#
(Microsoft Press, 2001; 1290 pages)

A tutorial for programmers wishing to write applications for Windows using the C# programming language and the Windows Forms class library. Knowledge of C or C++ is required.

Download individual source code files from ftp://ftp.charlespetzold.com/ProgWinCS or all source code files as ProgWinCS.zip (684K).

Code Code: The Hidden Language of Computer Hardware and Software
(Microsoft Press, 1999; 393 pages)

A unique exploration into bits, bytes, and the inner workings of computers.

Programming Windows, 5th Edition Programming Windows, 5th edition
(Microsoft Press, 1998; 1479 pages)

A tutorial for programmers wishing to write applications for Windows using the C programming language and the native Win32 application programming interface (API). Programs written using this book run under every version of Windows from Windows 95 through Windows XP and beyond. Knowledge of C is required.

Download individual source code files and executables from ftp://ftp.charlespetzold.com/ProgWin5 or the complete CD as ProgWin5.zip (9.87M).

Out-of-Print Books

Programming Microsoft Windows with Microsoft Visual Basic .NET Programming Microsoft Windows with Microsoft Visual Basic .NET
(Microsoft Press, 2002; 1303 pages)

A tutorial for programmers wishing to write applications for Windows using Visual Basic .NET and the Windows Forms class library. This book is a translation of my book Programming Microsoft Windows with C# from the C# programming language to Visual Basic .NET.

For program source code, go to the Microsoft Press page and click Companion Content at the right, or download individual source code files and executables from ftp://ftp.charlespetzold.com/ProgWinVB or the complete CD as ProgWinVB.zip (709K).

The book is missing a table of colors on the inside back cover. Download it here.

If you compile programs on the command line, programs that use Visual Basic function such as Chr and ChrW require the additional Imports statement:

    Imports Microsoft.VisualBasic

Programming Windows, 4th edition Programming Windows, 4th edition
(Microsoft Press, 1996; 1100 pages)

Download individual source code files and executables from ftp://ftp.charlespetzold.com/ProgWin95 or the complete diskette as ProgWin95.zip (1.06M). Chapters 12 and 20 contain material that I do not hold the copyright on and are not included.

OS/2 Presentation Manager Programming OS/2 Presentation Manager Programming
(Ziff-Davis Press, 1994; 934 pages)

This book shows C programmers how to write applications for the OS/2 2.1 Presentation Manager. The book is an update of the Microsoft Press book Programming the OS/2 Presentation Manager. The earlier book was based on the 16-bit OS/2 1.1 environment; this one focuses on the 32-bit OS/2 2.1 environment. Download individual source code file from ftp://ftp.charlespetzold.com/OS2PM2Image, or the original contents of the companion diskette from ftp://ftp.charlespetzold.com/OS2PM2.

Programming Windows, 3rd edition Programming Windows, 3rd edition
(Microsoft Press, 1992; 983 pages)

Download individual source code files and executables from ftp://ftp.charlespetzold.com/ProgWin31 or the complete diskette as ProgWin31.zip (488K).

Programming Windows, 2nd edition Programming Windows, 2nd edition.
(Microsoft Press, 1990)

Download individual source code files and executables from ftp://ftp.charlespetzold.com/ProgWin30 or the complete diskette as ProgWin30.zip (401K).

Programming the OS/2 Presentation Manager Programming the OS/2 Presentation Manager
(Microsoft Press, 1989)

Download individual source code files and executables from ftp://ftp.charlespetzold.com/ProgOS2PM or the complete diskette as ProgOS2PM.zip (207K).

Programming Windows, 1st edition Programming Windows, 1st edition
(Microsoft Press, 1988; 852 pages)

Download individual source code files and executables from ftp://ftp.charlespetzold.com/ProgWin1 or the complete diskette as ProgWin1.zip (189K).

Copies of out-of-print books may be available from: as well as other real and virtual used-book stores.

Books That Were Never Published

Graphics Programming in Windows

Graphics Programming in Windows

Also known as Programming Graphics for Windows.

The OS/2 Graphics Programming Interface

The OS/2 Graphics Programming Interface

© Charles Petzold, 2014
cp@charlespetzold.com
This page last updated April 2014