home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 July / Chip_2000-07_cd.bin / sharewar / prodelph / DLLSUPP.ZIP / STATMAIN.PAS < prev    next >
Pascal/Delphi Source File  |  1999-02-12  |  722b  |  40 lines

  1. unit statmain;
  2. { Unit with all User-procedures:
  3.     The procedure 'LetsDoIt' is called, whenever you click the button
  4.     'Start'
  5. }
  6. interface
  7.  
  8. uses
  9.   Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  10.   StdCtrls;
  11.  
  12. type
  13.   TForm1 = class(TForm)
  14.     Button1: TButton;
  15.     procedure LetsDoit(Sender: TObject);
  16.   private
  17.     { Private-Deklarationen }
  18.   public
  19.     { Public-Deklarationen }
  20.   end;
  21.  
  22. var
  23.   Form1: TForm1;
  24.  
  25. implementation
  26.  
  27. {$R *.DFM}
  28.  
  29. // The procedure, which has to be measured, is in the DLL 'EXDLL'
  30. // it is linked static
  31. FUNCTION Start : Integer; EXTERNAL 'EXDLL.DLL';
  32.  
  33. procedure TForm1.LetsDoit(Sender: TObject);
  34. begin
  35.   Start;
  36.   Start;
  37. end;
  38.  
  39. END.
  40.