Delphi Demo
Delphi Demo
一、Parameters
1、DB: Database,ACCESS:Lock System MSSQL:Lock-S System
2、DB Location:
ACCESS:The location of the Lock System. For example:
C:\Program Files\HONGLG\MHA V8.0
MSSQL:Server Name as SQL Server installed, please refer to Connection Wizard
dialog of Lock-S System.
Not: For SQL Server 2005.., the default Server Name with a suffix
\SQLEXPRESS, for detail,please refer to your installation of SQL Server
1
July, 2011
Delphi Demo Specification
二、Functions
For these functions parameters detail, please refer to LockDLL.DOC file.
1. StartSession
Execute function StartSession (LONG LockCard,LPSTR
DBServer,LPSTR LogUser,LONG DBFlag).
The function must be executed first. It initianizes DLL and connects to the
2
July, 2011
Delphi Demo Specification
4. DupKey
Execute fuction DupKey;
“Duplicate” Guest card, when it is issued, the original guest card will not be
affectted, both them will unlocking, and their effective time is same.
5. ReadKeyCard
Read card and display the information of the card
6. EraseKeyCard
Erase card, at the same time, renew data in database.
7. CheckOut
Check out, only renew data in database, do not erase card.
Remark: The DEMO and Lock-S system share the database. The DEMO can
read and erase the card issued by Lock-S system, in turn the same.
3
July, 2011