Compartir a través de


Compiling the Sample Project

[The feature associated with this page, Windows Media Player SDK, is a legacy feature. It has been superseded by MediaPlayer. MediaPlayer has been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer instead of Windows Media Player SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The wizard generates all the files you need to compile the sample project, so you shouldn't need to change the default project settings. In Visual Studio, from the Build menu, click Build Solution to build and register the COM component. By default, the Debug configuration is active.

Note

In Windows Vista and later, the project will not build successfully unless you run Visual Studio with a full administrator access token. Right-click the Visual Studio name or icon, and click Run as administrator.

 

Before attempting to build the project, be sure to configure your development environment to point to the folders named Include and Lib where you installed the Windows SDK. Your compiler and linker will need access to some of the files in these folders.

If you ran the Visual Studio Registration utility that comes with the Windows Vista SDK, your development environment has probably already been configured to point to the Windows SDK Include and Lib folders. Otherwise, you must manually configure your development environment.

To manually configure Visual Studio, use the following steps.

  1. On the Tools menu, click Options.
  2. Click Projects and Solutions, and then click VC++ Directories.
  3. Under Show directories for, click Include files or Library files.
  4. Add the directories for the required files.

Building the Plug-in for a Type 2 Online Store