Add a Contact Picture
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.
CHOOSECONTACT Structure structure
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.5.3 DTK\Samples\Common\CPP\Win32\AddContactPicture
Microsoft Visual Studio launches and loads the solution.
Build the solution (Ctrl+Shift+B).
Deploy the solution (F5).
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.