If you purchased the Programming Windows 6th edition ebook from the O'Reilly web site, you've probably already received an email notification indicating that updated code is now available. That code can be downloaded from the book's page on the O'Reilly site. Look for the "Companion Content" link over at the right.
The ZIP file contains the earlier code and updated code in two directories:
The ConsumerPreview directory contains code that can be compiled for and run under the Windows 8 Consumer Preview, and which matches the code in the Consumer Preview eBook.
The ReleasePreview directory contains the same code updated for the Windows 8 Release Preview (which became available on Friday).
Each of these two directories has subdirectories named CSharp, which has the C# code from the book, and CPlusPlus, which is the code converted to C++. Each of these directories has subdirectories named Chapter01 through Chapter07 for the 7 chapters of the Programming Windows 6th edition Consumer Preview eBook.
Programming Windows, 6th Edition
Special Price through (approximately) July 2012!
For just $20, you get:
(1) the Consumer Preview ebook right now
(2) the Release Preview ebook in early August
(3) the final ebook in November
Programming Windows 6th Edition
Consumer Preview eBook