The accompanying CDROM contains a sample application that illustrates the implementation of a simple ActiveSync provider. The application synchronizes items with a single string of up to 256 characters. The items are stored in a Windows CE property database on the device and a flat file on the desktop PC. The source code is located in the directory ActiveSync. The application consists of the following projects:
CIDevice— A Windows CE MFC application that presents a simple user interface to manipulate the records in the database, located in ActiveSyncasdevicecldesktop. This application is a straightforward MFC application, not described here, that manipulates a Windows CE property database. The user interface is similar to the desktop version shown in Figure 17.1.
CIDesktop— A desktop PC MFC application, located in ActiveSyncASDesktopCLDesktop, that presents a simple user interface to manipulate the records stored in a flat file. Once again, the code is straightforward and not described here. The user interface is illustrated in Figure 17.1.
The code in ASDevice and ASDesktop is organized to isolate the application-specific data access code, and so can be used as a skeleton for implementing your own ActiveSync provider.
18.226.169.94