Installing the Platform SDK and Configuring Visual C++

MSXML 5.0 SDK

Microsoft XML Core Services (MSXML) 5.0 for Microsoft Office - Digital Signatures

Installing the Platform SDK and Configuring Visual C++

Before using the XML Digital Signatures samples in this SDK, you need to do the following:

  • Download and install a recent version of the Platform SDK.
  • Verify that you have the latest versions of Wincrypt.h and Crypt32.lib provided by the Platform SDK.
  • Configure Visual C++ project settings to use the Platform SDK subdirectories for include and library files.

The following procedures describe how to complete these setup tasks.

To download and install the latest Platform SDK

  1. Go to Platform SDK Update on the Microsoft.com Download Center.
  2. In the list of SDKs, select Core SDK.
  3. Click Install this SDK.
  4. Follow the instructions to install the Core SDK components.

    At a minimum, you need the build environment files (approximately 25 MB).

To verify you have current versions of wincrypt.h and crypt32.lib

  1. In either Windows Explorer or at a command prompt, browse or change to the folder where you installed the Platform SDK.

    By default, the folder will be C:\Program Files\Microsoft SDK.

  2. In the \Include subdirectory, verify that you have a copy of Wincrypt.h dated 6/21/2002 or later.
  3. In the \Lib subdirectory, verify that you have a copy of Crypt32.lib dated 6/21/2002 or later.

To configure Visual C++ to use Platform SDK include and library files

  1. Open or create a new project for each sample in Visual C++.
  2. From the Tools menu, click Options....
  3. In the Options dialog box select the Directories tab.
  4. Add a new directory entry that points to the Platform SDK Include files folder, such as "C:\Program Files\Microsoft SDK\Include" if you installed the Platform SDK in the default path. To add a new directory entry, either click the New button or double click at the bottom of the list box, following the last entry in the list.
  5. Select and drag the entry to the top of the list.
  6. In Show directories for, select Library files.
  7. Add a new directory entry that points to the Platform SDK Lib files folder, such as "C:\Program Files\Microsoft SDK\Lib" if you installed the Platform SDK in the default path.
  8. Select and drag the entry to the top of the list.
  9. Click OK.