unit MainFrm;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls, xpCore, xpPlugInMng;
type
{ TfrmMain }
TfrmMain =
class(TForm)
btnTest: TButton;
edtFirstName: TLabeledEdit;
edtLastName: TLabeledEdit;
mmoLog: TMemo;
PlugInManager: TxpPlugInManager;
procedure FormCreate(Sender: TObject);
procedure PlugInManagerLoadPlugIn(Sender: TObject; PlugIn: TxpPlugIn);
procedure PlugInManagerUnloadPlugIn(Sender: TObject; PlugIn: TxpPlugIn);
procedure btnTestClick(Sender: TObject);
private
{ Private-Deklarationen }
FLocalVar:
string;
public
{ Public-Deklarationen }
end;
var
frmMain: TfrmMain;
procedure CallbackProc(ActionGUID:
string; CallbackInfo: Pointer);
implementation
uses
SamplePlugInIntf;
{$R *.dfm}
procedure CallbackProc(ActionGUID:
string; CallbackInfo: Pointer);
var
CallbackStruct: PCallbackStruct;
begin
ShowMessage('
B: ' + frmMain.FLocalVar);
CallbackStruct := CallbackInfo;
ShowMessage('
Callback called:' + #13#13 + Trim(CallbackStruct^.FirstName + #32 + CallbackStruct^.LastName));
end;
...