(Delphi DLL) Demonstrates UnlockComponent for MailMan
Demonstrates how to unlock the Chilkat MailMan functionality. The UnlockComponent method should be called once at the beginning of the program. Once unlocked, all subsequent MailMan objects are created in the unlocked state. There is no need to call UnlockComponent for every instance of a Chilkat MailMan 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;
...
procedure TForm1.Button1Click(Sender: TObject);
var
begin
// See Global Unlock Sample for sample code.
end;
|