procedure TFrm_main.ApplicationEvents1Exception(Sender: TObject;
E: Exception);
var
str, strcaption: string;
begin
begin
strcaption := '警告';
str := e.ClassName;
if str = 'EConvertError' then
strcaption := strcaption + ' - ÀàÐÍת»¯´íÎó';
if str = 'EDivByZero' then
strcaption := strcaption + ' - ±»Áã³ý';
application.MessageBox(pchar(e.Message), pchar(strcaption), mb_ok);
end;
end;