mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-19 13:59:29 +02:00
* TContainedObject 10496. First implementation copied from TInterfacedObject
git-svn-id: trunk@9569 -
This commit is contained in:
parent
78138162a6
commit
eb2a80d272
@ -782,6 +782,19 @@
|
||||
Result := IUnknown(fcontroller);
|
||||
end;
|
||||
|
||||
{****************************************************************************
|
||||
TContainedOBJECT
|
||||
****************************************************************************}
|
||||
|
||||
function TContainedObject.QueryInterface(
|
||||
const iid : tguid;out obj) : longint; stdcall;
|
||||
|
||||
begin
|
||||
if getinterface(iid,obj) then
|
||||
result:=0
|
||||
else
|
||||
result:=longint(E_NOINTERFACE);
|
||||
end;
|
||||
|
||||
{****************************************************************************
|
||||
Exception Support
|
||||
|
@ -242,6 +242,11 @@
|
||||
property Controller : IUnknown read GetController;
|
||||
end;
|
||||
|
||||
TContainedObject = class(TObject)
|
||||
protected
|
||||
function QueryInterface(const iid : tguid;out obj) : longint;virtual; stdcall;
|
||||
end;
|
||||
|
||||
{ some pointer definitions }
|
||||
PUnknown = ^IUnknown;
|
||||
PPUnknown = ^PUnknown;
|
||||
|
Loading…
Reference in New Issue
Block a user