home *** CD-ROM | disk | FTP | other *** search
- PROGRAM RkGenKey;
-
- {
- This is a sample program using rKey. It is a sample of a key file
- generation program that would be used by the programmer to create
- key files to be distributed to registered users. The program itself
- would NOT be distributed, as it would allow users to generate key
- files. This sample will create a key file for the RkSample program.
- }
-
-
- USES
- rKey; { to use StrLib change rKey to rKeyS }
-
-
- CONST
- RkGenFilVer = '1.0';
-
-
- VAR
- n : STRING[36];
-
-
- BEGIN
- OwnerCode := 'ArgleBarbWotsLeeb';
- ProgramCode := 'RkSample Two';
- KeyFileName := 'RKSAMPLE';
- WriteLn('RkGenFil v' + RkGenFilVer);
- WriteLn('Key File Generation Program for RkSample v2.x');
- WriteLn('(c) 1990 TrendSoft, Inc.');
- WriteLn;
- WriteLn('FOR INTERNAL USE ONLY!');
- WriteLn('DO NOT DISTRIBUTE!');
- WriteLn;
- Write('Enter name of person to register : ');
- ReadLn(n);
- WriteLn;
- Register(n,0,MakeKey(n,0));
- WriteLn(KeyFilePath + ' created.');
- END.