The Sample Application

< BACK  NEXT >
[oR]

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 \ActiveSync\asdevice\cldesktop. 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
    graphics/17fig01.gif
  2. ASDevice A standard Windows CE DLL that implements the Windows CE side of the ActiveSync provider, located in \ActiveSync\ASDevice.

  3. CIDesktop A desktop PC MFC application, located in \ActiveSync\ASDesktop\CLDesktop, 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.


< BACK  NEXT >


Windows CE 3. 0 Application Programming
Windows CE 3.0: Application Programming (Prentice Hall Series on Microsoft Technologies)
ISBN: 0130255920
EAN: 2147483647
Year: 2002
Pages: 181

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net