Building and Modifying the Sample Applications

The Windows Media Center SDK includes several sample applications. In a default installation, the applications are located in the folder at the following path: [WMCSDK_InstallPath]\Samples\. The following sample applications are included:

Sample Description
M Includes the files necessary to create a simple Windows Media Center application that uses most of the classes of the iTV API. This sample shows the user how to render, tune, switch audio streams, and use data for an iTV application.

The sample contains the minimum amount of code needed to create an iTV application and is designed to be the foundation upon which a developer can build a richer application.

Note   The full version of Visual Studio is required to compile this sample application.

Registration A set of XML files and registry files that demonstrate various techniques for registering applications for use in Windows Media Center.
Sampler Media Center Markup Language (MCML) samples that contain the source files (MCML documents, sounds, and images) for the Sample Explorer.
Z A Windows Media Center application written in C# and MCML that shows basic controls and features (such as buttons, galleries, and pivots), an on-screen keyboard, and animation techniques. Z uses many common Windows Media Center APIs, and shows the architecture and data binding concepts of MCML. You can also use Z for testing your own code and data.

Attempting to build the projects or modify the source code from the default installation location without running Visual Studio with elevated privileges will fail due to permission issues. However, the error messages may not convey information indicating the nature of the issue or its solution.

You can avoid this issue by doing one of the following:

  • Run Visual Studio with elevated privileges.
  • Copy the sample applications to a folder where you have write permissions, and then modify and build the applications from that location.

See Also