Building Sample Applications in the Visual C++ Development Environment

The sample code that ships with the Microsoft Exchange Server SDK compiles into three types of programs:

Note The SDK also provides static link libraries in directories under the \LibSrc directory. These libraries are not intended to be altered.

To build a sample application from within Visual C++, follow these steps:

    To build a sample application or DLL
  1. Create a top-level project for the sample application:
  2. Add the application's .C, .CPP, .RC, and .DEF files to the project:
  3. If the application's directory contains an .MC (message compiler) file, create a subproject for it and associate an external makefile with it. See Creating a Message-Compiler Subproject.
  4. Select the correct set of libraries for the linker:

    You can also choose the EXCHSDKD.LIB debug version instead of EXCHSDK.LIB, but first verify that this library has been built. See Building the Set of Sample Applications and Using the ExchSDKd Library.

  5. Click the C/C++ tab. In the text box Preprocessor definitions, append the following to the existing definitions list:

    _MT,_DLL,_WIN32,WINVER=0X0400

  6. Click OK. You can now build the sample application.