[Lazarus] How to cast a Interface to a Object in Lazaeus
aradeonas
aradeonas at operamail.com
Thu Mar 12 17:29:40 CET 2015
So then how can I add them in a list?In the end I want add video and
audio files in one list together.
Regards,
Ara
On Thu, Mar 12, 2015, at 09:26 AM, Lukasz Sokol wrote:
> 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
> >
>
>
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
--
http://www.fastmail.com - Accessible with your email software
or over the web
More information about the Lazarus
mailing list