mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-04-07 08:47:49 +02:00
Use HRESULT for delphi compatibility
This commit is contained in:
parent
3ed3dc7f1c
commit
bc1f5ab533
@ -219,7 +219,7 @@ type
|
||||
function _AddRef: Integer;
|
||||
function _Release: Integer;
|
||||
public
|
||||
function QueryInterface(const IID: TGUID; out Obj): integer; virtual;
|
||||
function QueryInterface(const IID: TGUID; out Obj): HRESULT; virtual;
|
||||
procedure AfterConstruction; override;
|
||||
end;
|
||||
|
||||
@ -599,7 +599,7 @@ type
|
||||
procedure BeforeDestruction; override;
|
||||
procedure DestroyComponents;
|
||||
procedure Destroying;
|
||||
function QueryInterface(const IID: TGUID; out Obj): integer; virtual;
|
||||
function QueryInterface(const IID: TGUID; out Obj): HRESULT; virtual;
|
||||
procedure WriteState(Writer: TWriter); virtual;
|
||||
// function ExecuteAction(Action: TBasicAction): Boolean; virtual;
|
||||
function FindComponent(const AName: string): TComponent;
|
||||
|
@ -44,6 +44,8 @@ type
|
||||
TRect = record
|
||||
Left, Top, Right, Bottom: Integer;
|
||||
end;
|
||||
|
||||
HRESULT = Integer;
|
||||
|
||||
function EqualRect(const r1,r2 : TRect) : Boolean;
|
||||
function Rect(Left, Top, Right, Bottom : Integer) : TRect;
|
||||
|
Loading…
Reference in New Issue
Block a user