ErrorMsg (Main Control) example for C++ Builder
Lead1->EnableMethodErrors = true;
try
{
Lead1->Load("c:\\bad_name.xyz", 0, 0, 1);
}
catch(ELeadImageError *e)
{
ShowMessage("File load failed\nError No " + IntToStr(Lead1->Error) + "\n" + Lead1->ErrorMsg);
}