Error (LEADDlgEffect Control) example for C++ Builder

void __fastcall TForm1::Button1Click(TObject *Sender) 
{
   LEADDlgEffect1->EnableMethodErrors = true; 
     try
   {
      LEADDlgEffect1->ShowGetShapeDlg ( NULL ); 
   }
   catch (...)
   {
      ShowMessage("Calling ShowGetShapeDlg method failed\n Error No " + IntToStr(LEADDlgEffect1->Error) + "\n" + LEADDlgEffect1->ErrorMsg); 
   }
}