My name is Barry Butterklee and I'm the Samples PM on the Windows SDK team. With the release of the Windows SDK for Beta2 of Windows Vista and WinFX Runtime Components I wanted to take a moment to give you a quick tour of samples in the SDK.
As the successor to the Platform SDK and .NET Framework SDK v2.0, the Windows SDK, contains samples that target Win32/Com APIs as well as samples that target WinFX APIs. Teams throughout Windows (and the SDK team itself) contribute samples to the SDK. To give you an idea of the scope of the sample content in the Windows SDK, here is a high-level breakdown of the new samples developed for the Windows SDK:
400+ Windows Presentation Foundation samples
100+ Windows Communication Foundation samples
50+ Windows Workflow Foundation samples
130+ New to Vista (Win32/COM-based) samples
15+ Cross technology samples that combine the several of the above areas
As you can see from the numbers above, there is a ton of new sample content in the Windows SDK - our sample contributors have been very busy!
Now some of you may be wondering with all these samples, how do I find them? The simplest way to find these samples is to navigate in the SDK documentation to the topic, Samples and Tutorials for the Windows SDK. This page allows you to navigate either to the new WinFX samples or to a listing of the Windows Vista samples (Win32/COM-based). The Windows Vista samples are located in the SDK's \Samples subdirectory. Each WinFX sample has a page in the documentation where the source code is available to view and download; or they are available in bulk from a handful of .zip files located in the \Samples subdirectory.
The following is a quick FAQ to help you out when using samples in the SDK:
Q. I'm running Windows Vista Beta2 and I cannot build a sample inside the SDK's \Samples directory, what's wrong?
A. Samples should be copied to a personal folder that is not under "Program Files".
Q. How do I build samples?
A. When building a sample
Either load the sample's project or solution file into Visual Studio 2005, or
Open an SDK command window to build the sample on the command line.
Q. What tool do I use to build sample code from an SDK command prompt?
A. For C# and Visual Basic use msbuild.exe, for C++ use vcbuild.exe (or nmake if there is only a makefile)
Q. Do I need Visual Studio 2005 in order to build SDK samples?
A. Some samples may have specific dependencies on Visual Studio 2005-specific features (such as ATL); but mostly Visual Studio 2005 is not a requirement to build samples.
Q. Are there any special caveats about some of the samples in the SDK?
A. Please check the SDK Readme for a complete description of known sample issues.
Any comments or feedback about samples in the SDK is greatly appreciated!