getinterface for corba style interfaces
Original Reporter info from Mantis: mse
-
Reporter name: Martin Schreiber
Original Reporter info from Mantis: mse
- Reporter name: Martin Schreiber
Description:
tobject.GetInterface should work with corba style interfaces.
I never use COM reference counting but to communicate with
not inherited classes by interfaces is very useful.
Some times (for instance in a GUI widget system) we have to get
a interface pointer from a at designtime of the base units unknown class.
In this case working getinterface is needed and
we can not use the slim corba interface style.
I suggest to itroduce a additional version of getinterface,
which does not work with TGUID, but with a compiler generated
32 bit id.
As long Delphi has no better FPC-compatibility,
object.getinterface(isomeinterface,intfvar); results
in object.getinterface(TGUID,intfvar); in Delphi
and object.getinterface(T32bitid,intfvar); in FPC.
In FPC, getinterface works for interfaces (corba or COM)
without GUID also.
Additional information:
Reporter: Martin Schreiber
EMail:
Mantis conversion info:
- Mantis ID: 6036
- OS: All
- Fixed in version: 2.2.4
- Fixed in revision: 459 (#b7408315).