Share via


Step 5: Add the SampleMediaParser Source Code to the Subproject (Compact 7)

3/12/2014

To use the sample code, you must add it to your subproject.

  1. In Visual Studio 2008 Solution Explorer, under your subproject name (MediaParserPlugin), right-click Include files, click Add, and then click Existing item to open the Add Existing Item dialog box.
  2. Browse to the SampleMediaParser.h file that you created in Step 4: Copy the Sample Implementation Source Code to Files on Your Computer, and then click Add to add it to your subproject.
  3. Under your subproject name, MediaParserPlugin, right-click Source files, then click Add, and then click Existing item to open the Add Existing Item dialog box.
  4. Browse to the SampleMediaParser.cpp file you created in Step 4, and then click Add to add it to your subproject.
  5. Modify the CLSID/GUID in the DEFINE_GUID statement in SampleMediaParser.h to be the actual GUID for your subproject.

See Also

Concepts

Build and Run the Sample Media Parser
Step 1: Create the Dynamic-Link Library Subproject in Your OS Design
Step 2: Configure the Subproject Properties for Use with COM and Media Library
Step 3: Modify Subproject Parameter and Source Files for Use with COM and Media Library
Step 4: Copy the Sample Implementation Source Code to Files on Your Computer
Step 6: Build the OS Design and Subproject
Step 7: (Optional) Debug the Media Parser Plug-In Subproject