Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SAP Sybase SQL Anywhere 16.0 » UltraLite - C and C++ Programming » Application development » UltraLite C++ application development using embedded SQL » Synchronization setup for an embedded SQL application


Synchronization invocation

The details of how to invoke synchronization depends on your target platform and on the synchronization stream.

The synchronization process can only work if the device running the UltraLite application is able to communicate with the MobiLink server. For some platforms, the device needs to be physically connected by placing it in its cradle or by attaching it to a server computer using the appropriate cable. If the synchronization cannot be completed, add error handling code to your application.

To invoke synchronization, call the ULInitSyncInfo method to initialize the synchronization parameters, and then call the ULSynchronize method to synchronize.

The synchronization call requires a structure that holds a set of parameters describing the specifics of the synchronization. The particular parameters used depend on the stream.