2006-05-30 16:23:25 +02:00
|
|
|
|
|
|
|
unit uPSComponent_COM;
|
|
|
|
|
|
|
|
interface
|
|
|
|
uses
|
|
|
|
SysUtils, Classes, uPSComponent, uPSCompiler, uPSRuntime;
|
|
|
|
type
|
|
|
|
|
|
|
|
TPSImport_ComObj = class(TPSPlugin)
|
|
|
|
private
|
2009-03-19 09:48:53 +01:00
|
|
|
public
|
2006-05-30 16:23:25 +02:00
|
|
|
procedure CompileImport1(CompExec: TPSScript); override;
|
|
|
|
procedure ExecImport1(CompExec: TPSScript; const ri: TPSRuntimeClassImporter); override;
|
|
|
|
end;
|
|
|
|
|
|
|
|
TIFPS3CE_ComObj = class(TPSImport_ComObj);
|
|
|
|
|
|
|
|
implementation
|
|
|
|
uses
|
|
|
|
uPSC_comobj,
|
|
|
|
uPSR_comobj;
|
|
|
|
|
|
|
|
|
|
|
|
{ TPSImport_ComObj }
|
|
|
|
|
|
|
|
procedure TPSImport_ComObj.CompileImport1(CompExec: TPSScript);
|
|
|
|
begin
|
|
|
|
SIRegister_ComObj(CompExec.Comp);
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
|
|
procedure TPSImport_ComObj.ExecImport1(CompExec: TPSScript;
|
|
|
|
const ri: TPSRuntimeClassImporter);
|
|
|
|
begin
|
|
|
|
RIRegister_ComObj(CompExec.Exec);
|
|
|
|
end;
|
|
|
|
|
|
|
|
end.
|