InsertMarker example for C++ Builder

void __fastcall TForm1::InsertMarkerClick(TObject *Sender)
{
   int i;
   LEADMarker1->LoadMarkers ( "e:\\image1.jpg", 0 );
   LEADMarker2->LoadMarkers ( "e:\\image2.tif", 0 );
   LEADMarker1->GetMarker ( 0 );
   LEADMarker2->MarkerType= LEADMarker1->MarkerType;
   LEADMarker2->ElementCount= LEADMarker1->ElementCount;
   for ( i= 0; i < LEADMarker1->Count; i ++ )
   {
      LEADMarker2->Element[i]= LEADMarker1->Element[i];
   }
   LEADMarker2->InsertMarker ( 0 );
}