home *** CD-ROM | disk | FTP | other *** search
- PROGRAM RkGenKey;
-
- {
- This is a sample program using rKey. It is a sample of a software
- branding program that would be used by the user to enter their name
- and registration key and create a key file. This sample will create
- a key file for the RkSample program, using a registration key which
- would be generated by the programmer using the RkGenKey program.
- }
-
-
- USES
- rKey; { to use StrLib change rKey to rKeyS }
-
-
- CONST
- RkBrandVer = '1.3';
-
-
- VAR
- n : STRING[36];
- k : STRING[12];
-
-
- BEGIN
- OwnerCode := 'ArgleBarbWotsLeeb';
- ProgramCode := 'RkSample Two';
- KeyFileName := 'RKSAMPLE';
- WriteLn('RkBrand v' + RkBrandVer);
- WriteLn('Software Branding Program for RkSample v2.x');
- WriteLn('(c) 1990 TrendSoft, Inc.');
- WriteLn;
- Write('Enter name of person to register : ');
- ReadLn(n);
- WriteLn;
- Write('Enter registration key : ');
- ReadLn(k);
- WriteLn;
- IF NOT ValidKey(n,0,k) THEN
- WriteLn('Invalid registration key!')
- ELSE BEGIN
- Register(n,0,k);
- WriteLn('RkSample now registered to ' + RegName);
- END;
- END.