The Sample Application

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:

  1. 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.

    Figure 17.1. CIDesktop user interface

  2. ASDevice— A standard Windows CE DLL that implements the Windows CE side of the ActiveSync provider, located in ActiveSyncASDevice.

  3. 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.

  4. ASDesktop— A desktop PC DLL that implements a COM component with the IReplObjHandler and IReplStore interfaces.

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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.226.169.94