home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2005 June (DVD) / DPPRO0605DVD.iso / Install / program files / Borland / BDS / 3.0 / Demos / Delphi.Net / CLR / FileSystemWatcher / FileWatcher.dpr < prev    next >
Encoding:
Text File  |  2004-10-22  |  3.4 KB  |  82 lines

  1. program FileWatcher;
  2.  
  3. ////////////////////////////////////////////////////////////////////////////////
  4. //  FileSystemWatcher Demo
  5. //  Written by Giuseppe Madaffari, giuseppe@giumad.com
  6. //\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  7.  
  8.  
  9. {%DelphiDotNetAssemblyCompiler '$(SystemRoot)\microsoft.net\framework\v1.1.4322\System.dll'}
  10. {%DelphiDotNetAssemblyCompiler '$(SystemRoot)\microsoft.net\framework\v1.1.4322\System.Data.dll'}
  11. {%DelphiDotNetAssemblyCompiler '$(SystemRoot)\microsoft.net\framework\v1.1.4322\System.Drawing.dll'}
  12. {%DelphiDotNetAssemblyCompiler '$(SystemRoot)\microsoft.net\framework\v1.1.4322\System.Windows.Forms.dll'}
  13. {%DelphiDotNetAssemblyCompiler '$(SystemRoot)\microsoft.net\framework\v1.1.4322\System.XML.dll'}
  14. {%ResXCompiler 'WinForm.resx'}
  15.  
  16. uses
  17.   System.Reflection,
  18.   System.Runtime.CompilerServices,
  19.   System.Windows.Forms,
  20.   WinForm in 'WinForm.pas' {WinForm.TWinForm: System.Windows.Forms.Form};
  21.  
  22. //
  23. // General Information about an assembly is controlled through the following
  24. // set of attributes. Change these attribute values to modify the information
  25. // associated with an assembly.
  26. //
  27. [assembly: AssemblyTitle('FileSystemWatcher Demo')]
  28. [assembly: AssemblyDescription('Demo program that shows the usage of FileSystemWatcher object, MailMessage and SmtpMail objects')]
  29. [assembly: AssemblyConfiguration('')]
  30. [assembly: AssemblyCompany('')]
  31. [assembly: AssemblyProduct('')]
  32. [assembly: AssemblyCopyright('')]
  33. [assembly: AssemblyTrademark('')]
  34. [assembly: AssemblyCulture('')]
  35.  
  36. //
  37. // Version information for an assembly consists of the following four values:
  38. //
  39. //      Major Version
  40. //      Minor Version 
  41. //      Build Number
  42. //      Revision
  43. //
  44. // You can specify all the values or you can default the Revision and Build Numbers 
  45. // by using the '*' as shown below:
  46.  
  47. [assembly: AssemblyVersion('1.0.*')]
  48.  
  49. //
  50. // In order to sign your assembly you must specify a key to use. Refer to the 
  51. // Microsoft .NET Framework documentation for more information on assembly signing.
  52. //
  53. // Use the attributes below to control which key is used for signing. 
  54. //
  55. // Notes: 
  56. //   (*) If no key is specified, the assembly is not signed.
  57. //   (*) KeyName refers to a key that has been installed in the Crypto Service
  58. //       Provider (CSP) on your machine. KeyFile refers to a file which contains
  59. //       a key.
  60. //   (*) If the KeyFile and the KeyName values are both specified, the 
  61. //       following processing occurs:
  62. //       (1) If the KeyName can be found in the CSP, that key is used.
  63. //       (2) If the KeyName does not exist and the KeyFile does exist, the key 
  64. //           in the KeyFile is installed into the CSP and used.
  65. //   (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility.
  66. //       When specifying the KeyFile, the location of the KeyFile should be
  67. //       relative to the project output directory. For example, if your KeyFile is
  68. //       located in the project directory, you would specify the AssemblyKeyFile 
  69. //       attribute as [assembly: AssemblyKeyFile('mykey.snk')], provided your output
  70. //       directory is the project directory (the default).
  71. //   (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
  72. //       documentation for more information on this.
  73. //
  74. [assembly: AssemblyDelaySign(false)]
  75. [assembly: AssemblyKeyFile('')]
  76. [assembly: AssemblyKeyName('')]
  77.  
  78. [STAThread]
  79. begin
  80.   Application.Run(TWinForm.Create);
  81. end.
  82.