Contents - Index

4.4.1 Introduction to Sheriff ActiveX Control

The Sheriff ActiveX Control enables you to protect your applications very easily while still benefiting from Sheriff's high level of security and comprehensive features. This guide leads you through the integration of the Sheriff ActiveX Control with a VB application; it also demonstrates various ways of using Sheriff to protect your applications. Although this guide uses Visual Basic for demonstration purposes, the procedure should be more or less similar in other programming languages such as VBA or Delphi.

The Sheriff ActiveX Control is designed to be used in two modes:

  1. Automatic Mode you can protect your application with minimal programming. In this mode, Sheriff controls the pace of protection and fires the necessary events that your application should handle.
  2. Advanced Mode: Sheriff acts in passive way and let your application control the pace of protection.
Control Installation
Before you can use any ActiveX control you need to register it with the Windows operating system. To register Sheriff ActiveX control, run the following command:

regsvr32 SheriffLocalCom.dll

Once the control is registered, you can then add the component to your toolbox or palette:

  • Visual Basic: Click on Project/Components, select Sheriff Licensing Control and press OK. The Sheriff control will appear on toolbox.

  • Delphi: Click on Component/Import ActiveX Control. Select Sheriff Licensing Control and press Install, then OK. The Sheriff control should appear in ActiveX palette.