Professional Documents
Culture Documents
Activation of The Multiple License of The SPEED7 Communication Driver V6.2X
Activation of The Multiple License of The SPEED7 Communication Driver V6.2X
multiple license=
License for several developer in one company on one location.
64 Bit option:
If you have purchased the 64bit option of the driver, you get also a serial
number for this option.
Note: First you have to call the activate function with the 64bit serial number.
After that, you must call the activate-function with the multiple license data.
1
Activation of the multiple license of the
SPEED7 Communication driver V6.2X
With the purchase you get the license data of the driver.
The important data is the serial number.
This serial number is the parameter of the activation-function.
In the following there are examples for the using of the activate-function in the
programming languages C#, Visual C++, Visual Basic (VB6 and VB2008 or
higher), Delphi and C++ Builder.
Example:
MpiDLL = new ComDrvS7V6("serialNumber", false, false);//messages in
german, no exceptions
Example:
MpiDLL.MPI6_ActivateSerialOnly("serialNumber");
Call:
Dim serial As String
serial = New String(Chr(0), 255)
serial = "XYZW-DRV6-3322-4173-9876-1234-2498"
'execute activate'
Dim Activate_Ret_Value As Integer
Activate_Ret_Value = MPI6_ActivateComDrvS7SerialOnly(serial)
2
Activation of the multiple license of the
SPEED7 Communication driver V6.2X
Call:
Dim Activate_Ret_Value As Long
Dim Serial As String
Serial = String$(255, 0)
serial = "XYZW-DRV6-3322-4173-9876-1234-2498"
Activate_Ret_Value = MPI6_ActivateComDrvS7SerialOnly(Serial)
Declaration (64-Bit):
__declspec(dllexport) int __cdecl
MPI6_ActivateComDrvS7SerialOnly(char *Serial);
Call (32-Bit):
int Ret_Value=0;
char serial[255];
strcpy(serial, "XYZW-DRV6-3322-4173-9876-1234-2498");
Ret_Value=_MPI6_ActivateComDrvS7SerialOnly(serial);
Call (64-Bit):
int Ret_Value=0;
char serial[255];
strcpy(serial, "XYZW-DRV6-3322-4173-9876-1234-2498");
Ret_Value=MPI6_ActivateComDrvS7SerialOnly(serial);
3
Activation of the multiple license of the
SPEED7 Communication driver V6.2X
Declaration (64-Bit):
function MPI6_ActivateComDrvS7SerialOnly(Serial:PAnsiChar): Integer;
cdecl; external 'MPIA64_V60_BC.DLL';
Call (32-Bit):
var
back : integer;
serial : array [0..255] of AnsiChar;
begin
serial := 'XYZW-DRV6-3322-4173-9876-1234-2498';
back := _MPI6_ActivateComDrvS7SerialOnly (@serial);
end;
Call (64-Bit):
var
back : integer;
serial : array [0..255] of AnsiChar;
begin
serial := 'XYZW-DRV6-3322-4173-9876-1234-2498';
back := MPI6_ActivateComDrvS7SerialOnly (@serial);
end;
Call:
var
back : integer;
serial: array[0..255] of char;
begin
serial:='XYZW-DRV6-3322-4173-9876-1234-2498';
//execute activate
back:=_MPI6_ActivateComDrvS7SerialOnly(@serial);
end;
4
Activation of the multiple license of the
SPEED7 Communication driver V6.2X
Call:
//
int back=0;
char serial[255];
strcpy(serial, "XYZW-DRV6-3322-4173-9876-1234-2498");
back=MPI6_ActivateComDrvS7SerialOnly(serial);
5
Activation of the multiple license of the
SPEED7 Communication driver V6.2X