Partager via


How to: Install the Samples Used in This Section

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 page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

To install the MFCMAPI application and CreateOutlookItemsAddin project to view and run the sample code referenced by the topics in the Creating Outlook Items by Using MAPI section, follow these steps.

Installation Instructions

To download and install the examples used in the "Using MAPI to Create Outlook Items" section, follow these steps.

To download and install the MFCMAPI application and open CreateOutlookItemsAddin project

  1. Download the current version of the MFCMAPI executable to a folder on your system.

  2. Extract the MFCMapi.exe file in MFCMapi.exe.version.zip to an empty folder on your hard drive.

  3. Download the current version of the CreateOutlookItemsAddin project.

  4. Extract all the files in the CreateOutlookItemsAddin.zip file to the folder where you extracted the MFCMapi.exe file in Step 2.

  5. Copy MFCMapi.exe from the folder used in Step 2 to the build directory for the CreateOutlookItemsAddin project (\CreateOutlookItemsAddin\Debug).

  6. Open the CreateOutlookItemsAddin project (\CreateOutlookItemsAddin\CreateOutlookItemsAddin.vcproj) in Visual Studio to examine the source code. Refer to the topics from the Creating Outlook Items by Using MAPI section to determine which source files to open.

Running MFCMAPI and the CreateOutlookItemsAddin Project

The following steps assume that you have downloaded and installed the current version of the MFCMAPI executable and the CreateOutlookItemsAddin project as described in the preceding procedure. These steps will guide you to the Addins menu items that enable you to create Outlook items using the MFCMAPI application and the CreateOutlookItemsAddin project.

NoteNote

The folder you select in step 8, and the command you select in step 9, depends on the item type discussed in one of the topics from the Creating Outlook Items by Using MAPI section.

To run the MFCMAPI application and Addins menu commands

  1. Start Mfcmapi.exe in the CreateOutlookItemsAddin\Debug folder that is created when you follow the installation instructions.

  2. Click OK to dismiss the MFCMAPI splash screen.

  3. On the Session menu, click Logon and Display Store Table.

  4. In the Choose Profile dialog box, select the correct profile, and then click OK.

  5. Double-click Mailbox - [User Name] in the store table list view.

  6. In the folder tree view, expand the root node. The name displayed for the root node varies depending on the type of profile selected. Typically this node is displayed as Root - Mailbox.

  7. In the folder tree view, expand the node that contains the information store. The name displayed for this node varies depending on the type of profile selected. Typically this node is displayed as IPM_SUBTREE or Top of Information Store.

  8. Double-click the folder for the item type to create. For example, to create an appointment, click the Appointments folder.

  9. On the Addins menu, click the appropriate command for the item to create.

Downloading and Viewing Code from the MFCMAPI Application

Some topics refer to source code from the MFCMAPI application itself. The following steps describe how to download the MFCMAPI source code and view it in Visual Studio.

To download and view the MFCMAPI application source code

  1. Download the source code for the current version of the MFCMAPI application to a folder on your system.

  2. Extract the files in MFCMAPI-changeset.zip to an empty folder on your hard drive.

  3. Open the MFCMapi project (\foldername\ MFCMapi.vcproj) in Visual Studio to examine the source code.

See Also

Concepts

How to: Create a Simple Mail Item

How to: Create a Simple Recurrent Task Item

How to: Create a Complex Recurrent Appointment Item

How to: Read and Parse a Recurrence Pattern