[Lazarus] How to cast a Interface to a Object in Lazaeus
el.es.cr at gmail.com
Thu Mar 12 17:26:23 CET 2015
Please avoid top-posting unless you have a grave reason for it
(like screen reader requirement).
On 12/03/15 15:56, aradeonas wrote:
> I'm still don't get how cast interface in Lazarus.
I think (I'm a noob here too)
what Marcos, Michael and Graeme want to say, is
- first declare Interfaces, inheriting from those you want,
(namely IVideoFile, IAudioFile with appropriate get/set methods)
- then make IFile inherit from the above and from IUnknown, not the other way round
(hope I got that right /) )
> On Thu, Mar 12, 2015, at 05:56 AM, aradeonas wrote:
>> I can get what you mean,Can you explain more?
>> For example when I want to store video and audio in one list how can I
>> do that?
>> On Thu, Mar 12, 2015, at 05:42 AM, Graeme Geldenhuys wrote:
>>> On 2015-03-12 12:35, Michael Van Canneyt wrote:
>>>> Your problem is that you mix an interface with a non-interface approach.
>>> And my thought from the beginning.
>>> - Graeme -
>>> fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
>>> Lazarus mailing list
>>> Lazarus at lists.lazarus.freepascal.org
>> http://www.fastmail.com - A no graphics, no pop-ups email service
>> Lazarus mailing list
>> Lazarus at lists.lazarus.freepascal.org
More information about the Lazarus