Zamrony P. Juhara via fpc-pascal wrote:
If you need to know if an instance implement certain interface, you can
use is operator
if anInstance is IInterface1 then
begin
end
Thanks for the reply, but that is not what I meant.
Regards,
Adriaan van Os
Am 21.12.2019 um 16:12 schrieb Adriaan van Os:
Sven Barth via fpc-pascal wrote:
The important difference in this regard between COM and CORBA
interfaces is that for CORBA interfaces the "guid" is a ShortString,
not a TGUID. Thus the compiler allows to convert a CORBA interface to
a ShortStri
Sven Barth via fpc-pascal wrote:
The important difference in this regard between COM and CORBA interfaces
is that for CORBA interfaces the "guid" is a ShortString, not a TGUID.
Thus the compiler allows to convert a CORBA interface to a ShortString.
For TObject.GetInterface this works, because
Am 20.12.2019 um 16:17 schrieb Adriaan van Os:
I would like to pass a CORBA interface-type as parameter and test for
equality, So, for example, I have
{$mode objfpc}
{$interfaces corba}
type
IMyInterface = Interface
[ '{34aad6d0-5884-4143-97c2-b6e330305ae3}']
Function
If you need to know if an instance implement certain interface, you can use is
operator
if anInstance is IInterface1 thenbegin end;
Zamrony P. Juhara
On Sat, Dec 21, 2019 at 0:25, Adriaan van Os wrote:
I would like to pass a CORBA interface-type as parameter and test for equality,
So
I would like to pass a CORBA interface-type as parameter and test for equality,
So, for example, I have
{$mode objfpc}
{$interfaces corba}
type
IMyInterface = Interface
[ '{34aad6d0-5884-4143-97c2-b6e330305ae3}']
Function MyFunc : Integer;