(Delphi ActiveX) Demonstrates UnlockComponent for Socket
Demonstrates how to unlock the Chilkat Socket functionality. The UnlockComponent method should be called once at the beginning of the program. Once unlocked, all subsequent Socket objects are created in the unlocked state. There is no need to call UnlockComponent for every instance of a Chilkat Socket object.
The object that called UnlockComponent may be discarded (deleted, deallocated, etc.). It does not need to remain in existence for subsequent objects to be already unlocked when created.
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Chilkat_TLB;
...
procedure TForm1.Button1Click(Sender: TObject);
var
begin
// See Global Unlock Sample for sample code.
end;
|