AnnUnlock example for C++ Builder

This is also the example for AnnGetLocked method.

If an object is found to be locked, using AnnGetLocked method, the object is unlocked, by AnnUnlock, using the key "LEADTOOLS".

 

bool bLocked; 
L_HANDLE ghObject;
//.
//.
//.

   bLocked= LEADAnn1->AnnGetLocked (ghObject); 
   if (bLocked) 
      LEADAnn1->AnnUnlock (ghObject, "LEADTOOLS");
//.
//.
//.