Post Format

QTProtector(Trial Maker Control)with source (Project Management Tools)

 </p><h3 id="item-description__what-is-qtprotector-control">What is QTProtector Control?</h3>
 <h5 id="item-description__-the-qtprotector-is-a-software-protection-component">
     The QTProtector is a software protection component.
 </h5>

Description

 <h5 id="item-description__-it-was-designed-for-quick-implementation-of-application-protection">
     It was designed for quick implementation of application protection functions. You can create time-trial and password protected applications. You can set the maximum number of execution, and it can work with registration keys as well. The stored information- passwords, registration keys etc. – are coded.
 </h5>

How to use

 <ul>
     <li>
          1. <p>
             Drop the component on your form.

     </li>
     <li>
          2. 
             If you want to start the initialization manually switch the poAutoInit off in the Options, and do not forget to call the Init method in your code.

     </li>
     <li>
          3. 
             Choose protection type or types, and set the ProtectionTypes property.

     </li>
     <li>
          4. 
             If you want to use password protection, fill up the codekey, and the password properties in design-time. The codekey will be used to hide the password in the executable file. If you switch the poPasswordOnce on in the Options, the component stores the information, and the user does not need to enter it every time. If the codekey in blank, the password has not been hidden. Three steps left. You have to create the following events: OnGetPassword (Will be called when component needs the password), OnValidPassword (Will be called when the password is valid), OnWrongPassword (Will be called when the password is invalid).

     </li>
     <li>
          5. 
             If you have choosen time trial protection, fill up the Expiration property. It is a date while your software runs. Now you have to create the following events: OnExpiration (Will be called when the trial time expired), OnTimeTrial (Will be called if more than 1 day remaining). It gives your information about how many days remaining from trial period). If you include the poCheckSystemTime in Options, component checks user’s computer Bios date and time. If it was set back, the OnInvalidSystemTime event will be called. Warning: If the poWorkAfterExpiration is included in Options, then OnTimeTrial will be called after expiration date.

     </li>
     <li>
          6. 
             If you have choosen start trial protection, fill up the MaxStartNumber property. The user cannot execute the application more times. Now you have to create the following events: OnExpiration (Will be called when the trial expired), OnStartTrial (Will be called if more than 1 start remaining). It gives your information about how many start remaining from trial period). Warning: If the poWorkAfterExpiration is included in Options, then OnStartTrial will be called after maximum number of start reached.

     </li>
     <li>
          7. 
             If you have choosen day trial protection, fill up the MaxDayNumber property. It is the number of days while your software runs after first start. Now you have to create the following events: OnExpiration (Will be called when the trial time expired), OnDayTrial (Will be called if more than 1 day remaining). It gives your information about how many days remaining from trial period). If you include the poCheckSystemTime in Options, component checks user’s computer Bios date and time. If it was set back, the OnInvalidSystemTime event will be called. Warning: If the poWorkAfterExpiration is included in Options, then OnDayTrial will be called after expiration date.

     </li>
     <li>
          8. 
             If you have choosen registration protection, you have to create OnGetSerialNumber event, and you must call the Registration method. The OnGetSerialNumber will be called when the component needs information about username and serialnumber. If the serialnumber is valid for username the OnRegisteredVersion, while the OnUnRegisteredVersion event will be called.
             Highly important: The serial number is generated from the username, and the component internal uniqeID. If you want to create registration key generator for your application you must set same properties to both component in main project and keygen project. So, It will be every time different.
             Hardware Key Checking: You can use this function from version 1.0. When the component checks the serial number, it uses username, the component internal uniqeID and the client computer’s hardware ID to check the validity. If the user changes the client computer he/she has to get a new serial number.


     </li>
     <li>
          9. 
             You can delete the registrations with method Reset().

     </li>
 </ul>

The Init method calls all checking in the begining, but you can call them from your code with the following methods:

  • CheckPassword();
  • CheckStartTrial();
  • CheckDayTrial();
  • CheckTimeTrial();
  • CheckRegistration();

Continue reading..

Leave a Reply