double.pp 728 B

1234567891011121314151617181920212223
  1. Program double;
  2. Uses
  3. {$IFDEF UNIX}
  4. CThreads,
  5. {$ENDIF}
  6. ResDaemonApp, DaemonApp, DaemonMapperUnit1, DaemonUnit1, daemonunit2, SysUtils, eventlog
  7. { add your units here };
  8. Var
  9. AExecutableFilenamePath : String;
  10. begin
  11. AExecutableFilenamePath := ParamStr(0);
  12. AExecutableFilenamePath := ExpandFileName(AExecutableFilenamePath);
  13. AExecutableFilenamePath := ExtractFilePath(AExecutableFilenamePath);
  14. Application.Title:='Daemon application';
  15. Application.Initialize;
  16. Application.EventLog.FileName := SysUtils.ConcatPaths([AExecutableFilenamePath, 'event-log.txt']);
  17. Application.EventLog.LogType := ltFile;
  18. Application.EventLog.AppendContent := False;
  19. Application.EventLog.Active := True;
  20. Application.Run;
  21. end.