Export (0) Print
Expand All
Expand Minimize

POOM Master

Windows Mobile 6.5
4/8/2010

This code sample is named PoomMaster. It demonstrates the use of the Pocket Outlook Object Model (POOM) API. The application displays currently stored PIM items (contacts, tasks, and calendar appointments) using an Owner-Drawn List-view Control. There is also functionality to create new PIM items using the IItem interface.

PoomMaster.cpp

Contains the entry point and the main dialog window proc, as well as a number of utility functions.

PoomData.cpp

Contains high-level POOM API calls for initialization, logon, and retrieving POOM properties.

PoomContacts.cpp

Contains routines for retrieving and setting PIM Contact items. Also contains the dialog proc for creating new Contacts.

PoomTasks.cpp

Contains routines for retrieving and setting PIM Task items. Also contains the dialog proc for creating new Tasks.

PoomCalendar.cpp

Contains routines for retrieving and setting PIM Appointment items. Also contains the dialog proc for creating new Appointments.

PoomMaster.h

Contains function prototypes and global data.

PoomMaster.rc

Contains the resource script for dialogs and menus.

To run the code sample
  1. Navigate to the solution file (*.sln), and double-click it. By default, the solution files are copied to the following folders:

    C:\Program Files\Windows Mobile 6.5.3 DTK\Samples\Common\CPP\Win32\PoomMaster

    Microsoft Visual Studio launches and loads the solution.

  2. Build the solution (Ctrl+Shift+B).

  3. Deploy the solution (F5).

For the sake of simplicity, only a few properties for each item are shown — typically the subject and one or two other essential values (such as a phone number for contact, or a date and time for an appointment).

Functionally, PoomMaster has three modes of display, each accessible from the Modes menu: Tasks, Contacts, or Appointments (labeled as Calendar in the menu). New items corresponding to the current mode can be created from each display using New Item from the Options menu. The Options menu also contains a Quit item. This is for the user's convenience, and is not demonstrative of typical Windows Mobile application behavior.

SDK: Windows Mobile Professional SDK and Windows Mobile Standard SDK 

Development Environment: Visual Studio 2005 or 2008.

ActiveSync: Version 4.5.

Community Additions

ADD
Show:
© 2014 Microsoft