2005年3月15日,发布于:
http://zyyang.spaces.live.com/blog/cns!193DAE30814DFA36!210.entry
- procedure TApplication.Run;
- begin
- FRunning := True; //I am Running.
- try
- AddExitProc(DoneApplication); //Add the current Application's Exit Proc Handler(Using AddExitProc()) so that DoneApplication is called when Exit.
- if FMainForm <> nil then //The first Form Application Creates.
- begin