Building an Individual Sample Application

The shipped versions of the sample applications are built with the RETAIL build type. If do not specify a build type when building an individual sample application, it will be of the DEBUG build type. To build a sample application with the build type of DEBUG, rebuild the libraries in the \BKOFFICE\SAMPLES\EXCHANGE\LIBSRC directory with the build type of DEBUG. The combined library of the DEBUG build type is called EXCHSDKD.LIB. The combined library for the RETAIL build type is EXCHSDK.LIB.

In some cases, build products are copied to the directory from which the individual sample application is installed or run. In all cases, a Win32 subdirectory is added below the current directory and a subdirectory for the build type is added below it. All object files, .LIB files, and output files are placed in the DEBUG or RETAIL subdirectory according to build type.

The following procedure describes the general process of building individual sample applications.

    To build an individual sample application
  1. Change to the directory containing the sample application:

    \BKOFFICE\SAMPLES\EXCHANGE\<sample application name>

  2. Type NMAKE [BLDTYPE=RETAIL].
  3. For usage information, type <application name> /? at the command prompt.
    To rebuild the libraries with a DEBUG build type
  1. Change to the directory containing the makefile that builds all the libraries:

    \BKOFFICE\SAMPLES\EXCHANGE\LIBSRC

  2. Type NMAKE.

    This builds all the libraries with the DEBUG build type.

Note You cannot rebuild the libraries from the \BKOFFICE\SAMPLES\EXCHANGE\LIBSRC\EXCHSDK directory. This makefile only contains instructions for gathering the already compiled individual libraries into the EXCHSDK.LIB library. See Setting the Build Type.