[Lazarus] How to cast a Interface to a Object in Lazaeus

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Fri Mar 13 15:21:34 CET 2015


On 2015-03-13 13:35, Dmitry Boyarintsev wrote:
> BUT, it would only work, if you're using COM interfaces (wont work corba).

Sorry, but that is a false statement. It works for both COM and CORBA
interfaces. Simply don't use the 'as' syntax - just cast it.

Attached is an example project showing both COM and CORBA works fine.
Simply toggle the DEFINE at the top of the code.

Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.pas
Type: text/x-pascal
Size: 897 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20150313/f3fefffc/attachment-0001.pas>


More information about the Lazarus mailing list