The information in this article applies to:
SUMMARYNotesDem.exe is an MFC sample for Windows CE that demonstrates how to read and write the NOTES field of the Contacts Database using the RichInk control. The NOTES field in the Contacts application is not the same field as HHPR_NOTES used in the address card structure. Actually, it is not even part of the addresscard structure so you must use the Windows CE Database APIs to get access to it. MORE INFORMATIONThe following files are available for download from the Microsoft
Download Center. Click the file names below to download the files: http://www.microsoft.com/downloads/search.aspand then click How to use the Microsoft Download Center. The property ID of the NOTES field is 0x170041. It contains binary data in the RichInk control format. There is an article "\Windows CE Platform SDK\Support\RichInk\RichInk.doc" that describes how to use the RichInk control. Reading the NOTES field is not very difficult. The following code taken from NotesDemo.exe shows how you could read the field into a RichInk control:
The NotesDem.exe sample also demonstrates how to write to the NOTES field.
NOTE: RichInk.h includes the calerror.h file. This file was not distributed with the Windows CE Toolkit for Visual C++ 5.0. This include can be commented out for the build. This control does not exist for the x86 emulation mode. REFERENCESWindows CE Programmers Guide: Accessing Persistent Storage Additional query words:
Keywords : kbfile kbsample kbMFC kbVC500 kbVC600 kbWinCE100 kbWinCE200 |
Last Reviewed: December 13, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |