home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 July / Chip_2000-07_cd.bin / sharewar / prodelph / DLLSUPP.ZIP / DYNAMIC.DPR < prev    next >
Text File  |  1999-03-07  |  2KB  |  62 lines

  1. PROGRAM DYNAMIC;
  2. { This is the main program. It calls a function in a DLL (ExDLL.DPR)
  3.   The DLL is linked dynamically.
  4.  
  5.   IMPORTANT:
  6.   You can either measure a Program, a DLL or both at the same time.
  7.  
  8.   I.   If you measure a program only, only program-units need to be in the
  9.        profiler directory.
  10.  
  11.   II.  If you measure a DLL only, only DLL-units need to be in the
  12.        profiler directory.
  13.  
  14.   III. If you measure a program and a DLL, both program-units and DLL-units need
  15.        to be in the profiler directory.
  16.  
  17.   The simplest way to process these three cases is the following:
  18.  
  19.   1. Case I, II and III:
  20.     1.a  Copy all program and DLL files into the same directory.
  21.     1.b  Profile all files in that directory.
  22.  
  23.   2. Case I - Program only:
  24.     2.a  Compile the DLL WITHOUT a defined the compiler symbol PROFILE.
  25.     2.b  Compile the program WITH a defined the compiler symbol PROFILE.
  26.  
  27.   3. Case II - DLL only:
  28.     3.a  Compile the DLL WITH a defined the compiler symbol PROFILE.
  29.     3.b  Compile the program WITHOUT a defined the compiler symbol PROFILE.
  30.  
  31.   4. Case III - Program and DLL:
  32.     4.a  Compile the DLL WITH a defined the compiler symbol PROFILE.
  33.     4.b  Compile the program WITH a defined the compiler symbol PROFILE.
  34.  
  35.   5. Let the program run.
  36.  
  37.   6. Depending on the case, you'll find the procedure runtimes of either
  38.      DLL or program or both in the result file.
  39.  
  40.   CAUTION:
  41.     EXE-file, DLL-file, PAS-, INC- and DPR-files have to be stored into the
  42.     same directory.
  43.  
  44.     ALSO ProfMeas.DLL, ProfCali.DLL, ProfInt.PAS, ProfOnli.PAS and
  45.     ProfOnli.DFM MUST be in that directory too !!!
  46.     The DLL's can also be in windows\system(32) directory.
  47.  
  48.     Your compiled DCU-files can be stored anywhere you like.
  49. }
  50.  
  51. USES
  52.   Forms,
  53.   DYNAMAIN;
  54.  
  55. {$R *.RES}
  56.  
  57. BEGIN
  58.   Application.Initialize;
  59.   Application.CreateForm(TForm1, Form1);
  60.   Application.Run;
  61. END.
  62.