Sample Source Code / Add DLL / COM exe to your project

Sample Source Code

For the compilers listed below a sample source code is available

 

Authorware / Director

Access Basic

Excel

Using C++

Using C#

Delphi

Using Java

Using PHP

VB6

Using VB.NET

Visual Basic Script

No Source Code available

 

Where to find the DLL / COM exe

The folder Licence Protector\4.1\files for distribution\410 contains all Licence Protector components (COM exe and DLLs).

 

..files for distribution\410

 

\DLL (signed DLL)

\COMexe  (signed EXE version of the DLL - details see below)

\wrapper - only necessary if COM DLLs are not supported

\Convert v3 to v4 - special DLL to convert old license files of version 3.x and 4.x

Using the DLL / COM exe

The recommended component is the LicProtector410.EXE. It is required for a 64bit compile or using .NET 4. The DLL can be used if the COM exe is not supported.

 

Depending on the development tool you add the DLL with a command like

 

Private objlic As Object

Set objlic = CreateObject("LicProtector.LicProtectorDLL410")

 

Usage of different versions on one computer

 

The LicProtector410.DLL in version 4.1 has the ProgID "LicProtector.LicProtectorDLL410" This allows using an older LicProtector.DLL in combination with older versions of LicProtector.dll on the same system. The ProgID changes with every main release. The file name of the dll is different from the ProgID (file name: LicProtector410.DLL - ProgID: LicProtectorEasyGo410).

 

The COM exe has the ProgID: LicProtector.LicProtectorEXE410

Registering the DLL / COM exe

The uncompressed LicProtector410.DLL and the  LicProtector410.EXE  is registered during program installation of Licence Protector.

 

To deliver your application  or use it on different PCs, you have to register the DLL / COM exe either

 

during the installation with an installer

using regsvr32.exe LicProtector410.dll or LicProtector410.EXE /regserver

alternatively you can use the Licence Protector registration tool.

an installation without registering the DLL is also possible.

 

See also: Installation and System Requirements

Limitations

If your development language does not support COM Server dll use the Wrapper DLL (32bit only) or use All-In-One Protector
 

The DLL / COM exe cannot be used in threads

 

DLL / COM exe version information

First check the latest program version and ProgID you find in the table below or for older versions, in the readme.txt file in the folder ..\files for distribution.

 

If you are using sample source code from our website always check if you have to change the ProgID.

 

If you use a CRC check adapt the CRC value and CLSID.

 

 

COM exe Version 4.1

 

 

DLL Version 4.1

 

 

 

 

COM exe Version 4.0

 

 

DLL Version 4.0

 

 

 

 

Also see special considerations regarding 64bit operating systems.

See also
Wrapper DLL
Register the DLL