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

SQL Anywhere 10.0.1 » UltraLite - C and C++ Programming » Developing Applications Using Embedded SQL » Adding synchronization to your application

Handling synchronization communications errors Next Page

Monitoring and canceling synchronization

This section describes how to monitor and cancel synchronization from UltraLite applications.

Monitoring synchronization

The following code shows how this sequence of tasks can be implemented in an embedded SQL application:

ULInitSynchInfo( &info );
info.user_name = m_EmpIDStr;
//The info parameter of ULSynchronize() contains
// a pointer to the observer function = ObserverFunc;
ULSynchronize( &sqlca, &info );

Handling synchronization status information