Samples

Kinect for Windows 1.5, 1.6, 1.7, 1.8

The SDK has a number of samples written in both managed and unmanaged code. The samples demonstrate the way to use the NUI APIs to access color, depth and skeleton data as well as to capture audio and perform speech recognition. The samples are written to perform well and have plenty of error checking in them.

In This Section

Opening, Building, and Running Samples in Visual Studio

To Open the Sample in Visual Studio

  1. Click the Start button, select All Programs > Kinect for Windows SDK version number > Developer Toolkit Browser version number (Kinect for Windows). You can also click the Start button and type kinect toolkit.
  2. In the list of samples, find this sample and click the Install button.
  3. Select a location to install the sample to.
  4. Double-click the Solution file (.sln) that was installed.

To Build the Sample

In Visual Studio 2010 Ultimate:

  1. Start Visual Studio and from the menu, select File > Open > Open Project/Solution.
  2. Browse to the directory that contains the unzipped sample files. Double-click the Visual Studio Solution (.sln) file.
  3. From the menu, select Build > Build Solution.

In Visual C# 2010 Express:

  1. Start Visual C# and from the menu, select File > Open Project.
  2. Browse to the directory that contains the unzipped sample files. Double-click the Visual Studio Solution (.sln) file.
  3. From the menu, select Debug > Build Solution.

In Visual C++ 2010 Express:

  1. Start Visual C++ and from the menu, select File > Open > Project/Solution.
  2. Browse to the directory that contains the unzipped sample files. Double-click the Visual Studio Solution (.sln) file.
  3. From the menu, select Debug > Build Solution.

In Visual Studio Ultimate 2012:

  1. Start Visual 2012 and from the menu, select File > Open > Project/Solution.
  2. Browse to the directory that contains the unzipped sample files. Double-click the Visual Studio Solution (.sln) file.
  3. From the menu, select Build > Build Solution.

To Run the Sample

To run the sample in the Visual Studio debugger, from the menu select Debug > Start Debugging. To run the sample in Visual Studio 2010 Ultimate without debugging, from the menu select Debug > Start Without Debugging.