[Lazarus] How to cast a Interface to a Object in Lazaeus
Lukasz Sokol
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.
>
> Regards,
> Ara
>
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 /) )
el es
> 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?
>>
>> Regards,
>> Ara
>>
>> 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.
>>>
>>> +1
>>> And my thought from the beginning.
>>>
>>> Regards,
>>> - Graeme -
>>>
>>> --
>>> fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
>>> http://fpgui.sourceforge.net/
>>>
>>> --
>>> _______________________________________________
>>> Lazarus mailing list
>>> Lazarus at lists.lazarus.freepascal.org
>>> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>>
>> --
>> http://www.fastmail.com - A no graphics, no pop-ups email service
>>
>>
>> --
>> _______________________________________________
>> Lazarus mailing list
>> Lazarus at lists.lazarus.freepascal.org
>> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
More information about the Lazarus
mailing list