                            Delphi HASP Components
                                 for Delphi
                            

1. Overview
2. History
3. Files
4. Installation
5. Registration

1. Overview
~~~~~~~~~~~
The Delphi HASP Components for Delphi 2 and 3 were designed to help developers
to protect their application using excellent HASP keys by Aladdin Knowledge
Systems, Ltd. The problem is that HASP Developer Kit (DK) by Aladdin provide
the key interface functions in standard way, i.e. by the set of API functions.
This way of development seems to be non-comfortable and non-standard for the
Delphi programmer. So, I have written four Delphi components (three of them were
included into Delphi HASP components) which provide the same functionality
in standard Delphi way, i.e. via component properties and method calls.

The Delphi HASP components package consist of three components - THASP3,
TMemoHASP and TTimeHASP. The THASP3 component provide an interface to HASP3 -
the base version of the hardware key provided by Aladdin Knowledge Systems, Ltd.
The TMemoHASP class (being a child class to the THASP3) is used to access the
MemoHASP key family - HASP keys which contain up to 496 bytes of memory on
board. The TimeHASP keys by Aladding is a key which contain a clock and (some
versions of the key) up to 512 bytes of memory. The TTimeHASP class, inherited
from TMemoHASP, is used to gain access to TimeHASP keys.

All the components are designed for 32-bit Delphi versions only. While porting
the source code to Delphi1 (it took me a hour with a half) I recognised that
I won't be able to support this code. Shareware development seems to be a hobby
for me and I have not enough time for developing the software I do not use
myself. If you need a Delphi 1 or C++ Builder version of Delphi HASP 
components - well, register and port it yourself, it's easy. If you want me to
do it - let's wait until the shareware will become a serios business for me.

2. History
~~~~~~~~~~
When I started using HASP keys in Delphi I've recognized that the protection 
of rather huge software project I was dealing with (it consists of 9
applications) could take a lot of time and money if I will use the way suggested
by Aladdin. It was more easy to create a set of components and protect the
software using them than to use the standard way. I tried - and succeed. It took
me about a week to develop the components themselves - and about a hour with a
half to protect each application from the package. The job was finished at
September, 1997, and the protected software package work fine in several
enterprizes. You could find a demo version at 
               http://www.apartner.aha.ru/~indexeng.htm
The demo itself is in russian language only.

Now we've released the next version of Autopartner project (described in the
previous paragraph) and, having a week or or two, I decided to distribute the
protection system as a shareware. To make the shareware version I had to make
several changes to the components; I do not think that I have made bugs while
changing the code (I've just renamed several properties), but if so - please
notice me, and I'll send you a correct version.

3. Files
~~~~~~~~
Here the files included in the Delphi HASP components package are listed:
\
\file_id.diz - descriprion of the archive
\hasp.doc    - documentation on the components, MSWord 6.0 format
\contact.txt - a short description on our company profile
\license.txt - the license on this software
\hasp.inf    - descriprion of the archive required on the DSP
\readme.txt  - this file
\russian.txt - special notes for russian programmers (win1251 codepage)
\DEMO\       - the demo project directory
\HELP\       - online help system on the components and demo project
\DELPHI2\    - the Delphi 2 components
\DELPHI3\    - the Delphi 3 component package

4. Installation
~~~~~~~~~~~~~~~
Before using the Delphi HASP Components under Windows95 or WindowsNT you need
to install the HASP driver, provided by Aladdin Knowledge Systems, Ltd. You can
find the required software on your HASP Developer Kit CD, on my homepage at
http://members.tripod.com/~sushko/hasp/hinstall.zip or on one of the Aladdin's
Internet sites:
  http://www.aladdin.co.il/
  http://www.aladdin.ru/
  http://www.aks.com/
  http://www.hasp.com/
The driver installation file is named HINSTALL.EXE and contains drivers for all
32-bit operation systems by Microsoft Corp.

Delphi2 installation.
- Close all Delphi applications
- Unzip files from the HASP.ZIP to any directory (C:\HASP, for example) 
- Put the contents of the \HASP\Delphi2\ to your \Delphi\Lib directory
- Move HASP.KWF file from the \HASP\Help to your \Delphi\Bin directory
- Copy HASP.CNT and HASP.HLP files from the \HASP\Help to your \Delphi\Bin
- Copy HASP.CNT and HASP.HLP files from the \HASP\Help to \HASP\Demo directory
  (the help files are used by the Delphi IDE and the demo project both)
- Start your \Delphi\Help\Tools\helpins.exe programm
- Choose File|Open and select the \Delphi\Bin\Delphi.hdx file
- Choose File|Add and select the \Delphi\Bin\hasp.kwf
- Choose File|Save, wait for the help system compilation will be completed and
  exit the programm
- Start Delphi
- Select Component|Install Component and press Add button
- Locate \Delphi\Lib\hasp.dcu file and press Open button;
- Press Ok button
- Wait for library rebuild will complete
- Choose File|Open and open the \HASP\Demo\demo.dpr file
- Choose Run|Run to run the demo project

Delphi3 installation.
- Close all Delphi applications
- Unzip files from the HASP.ZIP to any directory (C:\HASP, for example) 
- Put the contents of the \HASP\Delphi3\ to your \Delphi\Lib directory
- Copy HASP.CNT and HASP.HLP files from the \HASP\Help to your \Delphi\Bin
- Copy HASP.CNT and HASP.HLP files from the \HASP\Help to \HASP\Demo directory
  (the help files are used by the Delphi IDE and the demo project both)
- Add line ":Link hasp.hlp" to the file \Delphi\Help\Delphi.cfg
- Add line ":Include DELPHI3.CFG" to the \Delphi\Help\hasp.hlp
- Start Delphi
- Select Component|Install Packages and press Add button
- Locate \Delphi\Lib\hasp.dpl file and press Open button;
- Press Ok button
- Choose File|Open and open the \HASP\Demo\demo.dpr file
- Choose Run|Run to run the demo project

5. Registration
~~~~~~~~~~~~~~~
The HASP.ZIP archive you have downloaded contains a trial-run version of the
Delphi HASP components. The trial version of the components will work only if
the Delphi IDE is running. If not, the component will be unable to find the HASP
key attached to your computer.

Please register the Delphi HASP components to get a full-functional version of
Delphi HASP components. The registered users will receive the full source code,
one-year techical support and new versions of Delphi HASP components for free. 
The registration fee is $30. Please refer 
  http://members.tripod.com/~sushko/register.htm
file for the up-to-date registration information.

Thank you for your interest in Delphi HASP Components.
      Serge Sushko
      sushko@iname.com
      http://members.tripod.com/~sushko/
