2006-05-30 16:23:25 +02:00
|
|
|
{ compiletime ComObj support }
|
|
|
|
unit uPSC_comobj;
|
|
|
|
|
|
|
|
{$I PascalScript.inc}
|
|
|
|
interface
|
|
|
|
uses
|
|
|
|
uPSCompiler, uPSUtils;
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
Will register:
|
|
|
|
|
2008-10-09 21:03:33 +02:00
|
|
|
function CreateOleObject(const ClassName: String): IDispatch;
|
|
|
|
function GetActiveOleObject(const ClassName: String): IDispatch;
|
2006-05-30 16:23:25 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
procedure SIRegister_ComObj(cl: TPSPascalCompiler);
|
|
|
|
|
|
|
|
implementation
|
|
|
|
|
|
|
|
procedure SIRegister_ComObj(cl: TPSPascalCompiler);
|
|
|
|
begin
|
2008-10-09 21:03:33 +02:00
|
|
|
cl.AddDelphiFunction('function CreateOleObject(const ClassName: String): IDispatch;');
|
|
|
|
cl.AddDelphiFunction('function GetActiveOleObject(const ClassName: String): IDispatch;');
|
2006-05-30 16:23:25 +02:00
|
|
|
end;
|
|
|
|
|
|
|
|
end.
|