mirror of
https://github.com/moparisthebest/Simba
synced 2024-11-25 02:32:19 -05:00
9d6c4ee850
git-svn-id: http://www.villavu.com/repositories/merlijn/mufasa@58 3f818213-9676-44b0-a9b4-5e4c4e03d09d
29 lines
584 B
ObjectPascal
29 lines
584 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.
|