Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
4/8/2010

To create a messaging application, you must setup your Visual Studio project by including the necessary messaging-related header files, and by configuring the linker to link-in the necessary messaging-related type library.

Header Files to Include

At the beginning of your C++ source file, you must add pre-processor directives to include the messaging header files. The following sample code shows you how this should look.

Copy Code
#include <mapix.h>
#include <cemapi.h>
#include <mapiutil.h>
#include <mapidefs.h>

Project Dependencies

With you project loaded into Visual Studio, you must configure the Linker with the messaging type library dependency.

To Specify the Type Library for the Linker
  1. In Visual Studio, click the Projectmenu, and then click Properties(or just press Alt+F7).

  2. In the Project Property Pagesdialog box, navigate down the hierarchy tree and click the following property page:

    Configuration Properties> Linker> Input.

  3. In the Additional Dependenciesfield on the right, type the name of the CEMAPI type library file:

    cemapi.lib.

  4. Click OK.

Remarks

It is assumed that you are developing your application in Visual Studio 2005 or 2008, and that you have already installed one of the Windows Mobile SDKs .

See Also

Other Resources

Messaging Common Tasks