pascalscript/Source/uPSC_comobj.pas
carlokok 640e718d38 string = native string on 2009 now
git-svn-id: http://code.remobjects.com/svn/pascalscript@87 5c9d2617-0215-0410-a2ee-e80e04d1c6d8
2008-10-09 19:03:33 +00:00

29 lines
612 B
ObjectPascal

{ compiletime ComObj support }
unit uPSC_comobj;
{$I PascalScript.inc}
interface
uses
uPSCompiler, uPSUtils;
{
Will register:
function CreateOleObject(const ClassName: String): IDispatch;
function GetActiveOleObject(const ClassName: String): IDispatch;
}
procedure SIRegister_ComObj(cl: TPSPascalCompiler);
implementation
procedure SIRegister_ComObj(cl: TPSPascalCompiler);
begin
cl.AddDelphiFunction('function CreateOleObject(const ClassName: String): IDispatch;');
cl.AddDelphiFunction('function GetActiveOleObject(const ClassName: String): IDispatch;');
end;
end.