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. |
This code sample is named Medical History. It demonstrates how to add named propertiesto a Windows Mobile Contact item, and how to add menu extensionsto a Contact summary card.
Feature Area
Relevant APIs
IContextMenuinterface
IItem::GetPropsmethod
IItem::Savemethod
IItem::SetPropsmethod
IObjectWithSiteinterface
IPOutlookApp::Logonmethod
IPOutlookApp2::GetIDsFromNamesmethod
Usage
-
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\PocketPC\CPP\win32\MedicalHistory
Microsoft Visual Studio launches and loads the solution.
-
Build the solution (Ctrl+Shift+B).
-
Deploy the solution (F5).
After you build this code sample, you can configure Visual Studio to debug it remotely on the mobile device by following these steps.
-
In Visual Studio, right-click the MedicalHistoryproject in Solution Explorer, and then click Properties.
-
Expand Configuration Properties, and click Debugging.
-
In Debugger to launch:, select Smart Device Native Debugger.
-
In Remote Executable, type "\Windows\poutlook.exe".
-
In Command Arguments, type contacts.
-
Click OKto save your changes.
-
Press F5 to begin debugging.
-
Open a contact's summary card.
-
Click Menu, then click Medical History.
Remarks
These menu extensions allow the user to add medical information to a IContactitem. This includes the contact's health insurance provider, blood group, blood pressure, and allergies.
Development Environments
SDK:Windows Mobile Professional SDK and Windows Mobile Standard SDK
Development Environment:Visual Studio 2005 or 2008.
ActiveSync:Version 4.5.