delphi中重写异常处理过程 这个要调用到WINDOWS下的API函数,具体的你可以查一下WIN下的API函数,有说的,一般DELPHI书上也有对错误处理的说明! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 try .... .... ....except .... 写错误日志.... .... exit;end; 楼上的方法要写很多的try才行delphi在调试的时候可以自动产生异常信息,我就想在那个自动的异常之前做一些事. unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs;type TForm1 = class(TForm) ApplicationEvents1: TApplicationEvents; procedure ApplicationEvents1Exception(Sender: TObject; E: Exception); private { Private declarations } public { Public declarations } end;var Form1: TForm1;implementation{$R *.dfm}procedure TForm1.ApplicationEvents1Exception(Sender: TObject; E: Exception);begin .... 写错误日志....//只有一个。 ....end;end. 周末也很累啊 【求教高手,如何给report machine中的 memo动态赋值】 如何把delphi组件生成dll文件 心里郁闷,想听听大家的意见! 作一个autocad的浏览程序,遇到数据库的问题,帮忙~ 不知道这是什么意思;;;;;;;;;;;;;;; 平台移植问题 关于Delphi控制Excel,如何控制数值的小数点位数 请教D6的报表组件打印设置的代码编写! 今天我用了delphi6企業版 线程的基本问题, 新人... 用DELPHI 6 编写斑马条形码打印程序f如何编写
....
....
....
except
....
写错误日志....
....
exit;
end;
delphi在调试的时候可以自动产生异常信息,我就想在那个自动的异常之前做一些事.
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs;type
TForm1 = class(TForm)
ApplicationEvents1: TApplicationEvents;
procedure ApplicationEvents1Exception(Sender: TObject; E: Exception);
private
{ Private declarations }
public
{ Public declarations }
end;var
Form1: TForm1;implementation{$R *.dfm}procedure TForm1.ApplicationEvents1Exception(Sender: TObject;
E: Exception);
begin
....
写错误日志....//只有一个。
....
end;end.