MSDN Library
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Add a Contact Picture

Windows Mobile 6.5
Windows Mobile SupportedWindows Embedded CE Not Supported
8/28/2008

This code sample is named AddContactPicture. It demonstrates how to allow the user to select a contact (using the Contact Chooser), select a picture (using the Picture Picker), and then adds the selected picture to the selected contact, and displays the summary card for that contact.

Feature Area

Pocket Outlook Object Model (POOM)

Shell Application Development

Relevant APIs

CHOOSECONTACT Structure structure

ChooseContact function

CreateFile function

GetOpenFileNameEx function

IItem::Display method

IItem::OpenProperty method

IPOutlookApp::Logoff method

IPOutlookApp::Logon method

IPOutlookApp2 interface

IPOutlookApp2::GetItemFromOidEx method

IStream::Write method

OPENFILENAMEEX structure

  1. Navigate to the solution file (*.sln), and double-click it. By default, the solution file is copied to the following folder:

    C:\Program Files\Windows Mobile 6 SDK\Samples\Common\CPP\Win32\AddContactPicture

    Microsoft Visual Studio 2005 launches and loads the solution.

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

  3. Deploy the solution (F5).

SDK: Windows Mobile 6 Professional SDK and Windows Mobile 6 Standard SDK

Development Environment: Visual Studio 2005.

ActiveSync: Version 4.5.

AddContactPicture allows you to select a IContact item, select a picture, add the picture to the Contact item, and then display the contact's summary card.

It is assumed that you have already created a few Contact items, and copied a few image files to the My Pictures folder.

Community Additions

Show:
© 2016 Microsoft