home *** CD-ROM | disk | FTP | other *** search
- program Project1;
-
- uses
- Forms,
- RtRegw32,
- Dialogs,
- SysUtils,
- WinTypes,
- Unit1 in 'UNIT1.PAS' {Form1},
- Unit2 in 'UNIT2.PAS' {NewForm},
- Unit3 in 'UNIT3.PAS' {NewForm1},
- Unit4 in 'UNIT4.PAS' {NewForm2};
-
- {$R *.RES}
-
- var
- Msg: string;
- begin
- RTSetSaveFile('REGPAS.INI'); {Save information into REGPAS.INI}
- RTSetSaveKind(skIni); {it is an INI file}
- Lock := 0;
- Cnt := 1;
- if RTCheckReg(cPrg)<0 then
- begin
- Msg := 'This an unregister version of the DEMO program.'+#13#10;
- if RTIsCountLock(cPrg) then
- begin
- Lock := 1;
- Cnt := RTCheckCountLock(cPrg);
- Msg := Msg+'You have '+IntToStr(Cnt)+' more calls to test it.'+#13#10;
- end
- else if RTIsDateLock(cPrg) then
- begin
- Lock := 2;
- Cnt := RTCheckDateLock(cPrg);
- Msg := Msg+'You have '+IntToStr(Cnt)+' more days to test it.'+#13#10;
- end;
- Msg := Msg+'Do you want to register now?';
- if ((MessageDlg(Msg,mtConfirmation,[mbYes,mbNo],0)=idNo) or (not Register))
- and (Lock=0) then
- SetLock;
- end;
- if Cnt>0 then
- begin
- Application.CreateForm(TForm1, Form1);
- Application.Run;
- end;
- end.
-