Step 2: Configure the Subproject Properties for Use with COM and Media Library (Compact 7)

3/12/2014

You must configure your subproject to support adding COM objects and code, and to support Media Library use.

  1. In Solution Explorer, right-click the subproject name (MediaParserPlugin), and then click Properties to open the properties editor for the subproject.

  2. On the General tab, click Release Type, and then in the drop-down list of release types, click OAK.

  3. On the General tab, click Custom Variables, and then click to open the Custom Variables dialog box. Add the five custom variables shown in the following table to the subproject.

    Variable name Variable value

    WINCEATL

    1

    _DCOMUUID

    $(SG_OUTPUT_ROOT)\sdk\lib\$(_CPUINDPATH)\uuid.lib

    _OLEAUT32

    $(SG_OUTPUT_ROOT)\sdk\lib\$(_CPUINDPATH)\oleaut32.lib

    _OLE32

    $(SG_OUTPUT_ROOT)\sdk\lib\$(_CPUINDPATH)\ole32.lib

    _COMMCTRL

    $(SG_OUTPUT_ROOT)\sdk\lib\$(_CPUINDPATH)\commctrl.lib

  4. On the C/C++ tab, click Include Directories, and then type the two semicolon-separated include directory locations: $(_PUBLICROOT)\ie7\sdk\inc;$(_PUBLICROOT)\mediaapps\sdk\inc.

  5. On the Link tab, click Additional Libraries, which already contain $(SG_OUTPUT_ROOT)\sdk\lib\$(_CPUINDPATH)\coredll.lib, and type the space-separated list of additional libraries, using four of the custom variable names shown in the table in Step 3: $(_OLE32) $(_COMMCTRL) $(_DCOMUUID) $(_OLEAUT32).

See Also

Concepts

Build and Run the Sample Media Parser
Step 1: Create the Dynamic-Link Library Subproject in Your OS Design
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 5: Add the SampleMediaParser Source Code to the Subproject
Step 6: Build the OS Design and Subproject
Step 7: (Optional) Debug the Media Parser Plug-In Subproject