SmartCostServer.dpr 940 B

123456789101112131415161718192021222324252627282930313233343536
  1. program SmartCostServer;
  2. uses
  3. Forms,
  4. Windows,
  5. MainUnit in 'MainUnit.pas' {frmMian},
  6. ServerServices in 'ServerServices.pas',
  7. CorrespondService in 'CorrespondService.pas',
  8. ClientInfoService in 'ClientInfoService.pas' {ClientInfoDM: TDataModule},
  9. SoftDogService in 'SoftDogService.pas',
  10. EncryptService in 'EncryptService.pas',
  11. AnimateWinService in 'AnimateWinService.pas',
  12. TypeUnit in 'TypeUnit.pas',
  13. TypeConfig in 'TypeConfig.pas';
  14. {$R *.res}
  15. const
  16. AtomValue = 'SMARTCOSTSERVER';
  17. begin
  18. if GlobalFindAtom(AtomValue) = 0 then
  19. begin
  20. GlobalAddAtom(AtomValue);
  21. try
  22. Application.Initialize;
  23. Application.Title := 'SmartCost服务程序';
  24. Application.CreateForm(TfrmMian, frmMian);
  25. Application.Run;
  26. finally
  27. GlobalDeleteAtom(GlobalFindAtom(AtomValue));
  28. end;
  29. end
  30. else
  31. MessageBox(0, PChar('不能同时打开两个SmartCost服务器!'), PChar('打开失败'), MB_OK or MB_ICONERROR);
  32. end.