home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / Runimage / Delphi50 / Bin / DPHIDE50.BPL / 0 / RCDATA / PASCRTRS < prev    next >
Encoding:
Text File  |  1999-08-11  |  2.6 KB  |  173 lines

  1. unit %s;
  2.  
  3. interface
  4.  
  5. implementation
  6.  
  7. end.
  8. |unit %s;
  9.  
  10. interface
  11.  
  12. uses
  13.   Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs;
  14.  
  15. type
  16.   T%s = class(T%s)
  17.   private
  18.     { Private declarations }
  19.   public
  20.     { Public declarations }
  21.   end;
  22.  
  23. var
  24.   %1:s: T%1:s;
  25.  
  26. implementation
  27.  
  28. {$R *.DFM}
  29.  
  30. end.
  31. |unit %s;
  32.  
  33. interface
  34.  
  35. uses
  36.   Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs;
  37.  
  38. type
  39.   %s = class(%s)
  40.   private
  41.     { Private declarations }
  42.   protected
  43.     { Protected declarations }
  44.   public
  45.     { Public declarations }
  46.   published
  47.     { Published declarations }
  48.   end;
  49.  
  50. procedure Register;
  51.  
  52. implementation
  53.  
  54. procedure Register;
  55. begin
  56.   RegisterComponents('%s', [%1:s]);
  57. end;
  58.  
  59. end.
  60. |unit %s;
  61.  
  62. interface
  63.  
  64. uses 
  65.   Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs;
  66.  
  67. type
  68.   T%s = class(T%s)
  69.   private
  70.     { Private declarations }
  71.   public
  72.     { Public declarations }
  73.   end;
  74.  
  75. implementation
  76.  
  77. {$R *.DFM}
  78.  
  79. end.
  80. |unit %0:s;
  81.  
  82. interface
  83.  
  84. uses
  85.   Classes;
  86.  
  87. type
  88.   %1:s = class(TThread)
  89.   private
  90.     { Private declarations }
  91.   protected
  92.     procedure Execute; override;
  93.   end;
  94.  
  95. implementation
  96.  
  97. { Important: Methods and properties of objects in VCL can only be used in a
  98.   method called using Synchronize, for example,
  99.  
  100.       Synchronize(UpdateCaption);
  101.  
  102.   and UpdateCaption could look like,
  103.  
  104.     procedure %1:s.UpdateCaption;
  105.     begin
  106.       Form1.Caption := 'Updated in a thread';
  107.     end; }
  108.  
  109. { %1:s }
  110.  
  111. procedure %1:s.Execute;
  112. begin
  113.   { Place thread code here }
  114. end;
  115.  
  116. end.
  117. |program %s;
  118.  
  119. uses
  120.   Forms;
  121.  
  122. {$R *.RES}
  123.  
  124. begin
  125.   Application.Initialize;
  126.   Application.Run;
  127. end.
  128. |library |;
  129.  
  130. uses
  131.   ShareMem,
  132. |  LibMain;
  133.  
  134. |
  135. exports
  136.   InitLibrary name LibrarySignature;
  137.  
  138. begin
  139. |end.
  140. |library %s;
  141.  
  142. { Important note about DLL memory management: ShareMem must be the
  143.   first unit in your library's USES clause AND your project's (select
  144.   Project-View Source) USES clause if your DLL exports any procedures or
  145.   functions that pass strings as parameters or function results. This
  146.   applies to all strings passed to and from your DLL--even those that
  147.   are nested in records and classes. ShareMem is the interface unit to
  148.   the BORLNDMM.DLL shared memory manager, which must be deployed along
  149.   with your DLL. To avoid using BORLNDMM.DLL, pass string information
  150.   using PChar or ShortString parameters. }
  151.  
  152. uses
  153.   SysUtils,
  154.   Classes;
  155.  
  156. {$R *.RES}
  157.  
  158. begin
  159. end.
  160. |package %s;
  161.  
  162. end.
  163. |package |;
  164.  
  165. |{$DESCRIPTION |}
  166. |{$RUNONLY}
  167. |{$DESIGNONLY}
  168. |requires
  169.   |contains
  170.   |
  171. end.
  172. |
  173.