Configure Visual Studio

This topic contains instructions about how to configure a Visual Studio project to use the Active Directory Rights Management Services SDK 2.1.

Prerequisites

Instructions

Step 1: Configure a Visual Studio project to use AD RMS SDK 2.1

These instructions are specific to Microsoft Visual Studio 2010. If you are using a different version of Microsoft Visual Studio, your settings dialog boxes may appear slightly different.

These instructions apply to building a native 32-bit application.

  1. Add the AD RMS SDK 2.1 include directory to your Visual Studio 2010 project.

    Under Configuration Properties select VC++ Directories and add the AD RMS SDK 2.1 include directory, $(MSIPCSDKDIR)\inc, to the Include Directories field.

    Configuration properties include directories field

  2. Add the AD RMS SDK 2.1 library directory to your Visual Studio 2010 project.

    Under Configuration Properties select VC++ Directories and add the AD RMS SDK 2.1 library directory, to the Library Directories field for your platform.

    • For Win32, use $(MSIPCSDKDIR)\lib
    • For x64, use $(MSIPCSDKDIR)\lib\x64

    Configuration properties library directories field

  3. Add the AD RMS SDK 2.1 library files as Visual Studio 2010 dependencies.

    Under Linker, select Input and add the AD RMS SDK 2.1 library files; Msipc.lib and Msipc_s.lib, to the Additional Dependencies field.

    Linker library dependencies field

  4. Add the AD RMS SDK 2.1 Dynamic Link Library (DLL) as a delay-loaded DLL.

    Under Linker, select Input, and add the AD RMS SDK 2.1 DLL file, Msipc.dll, to the Delay Loaded Dlls field.

    Linker delay-loaded libraries field

  5. Create version information for your resulting binary.

    Under Solution Explorer select Resource Files and add your binary name to the OriginalFileName field.

    Solution explorer resource files field

Related topics

How-to use
Install the SDK

 

 

Show:
© 2015 Microsoft