[Lazarus] IUnknown and reference counting

Benito van der Zander benito at benibela.de
Thu Mar 21 12:07:20 CET 2013


>
> The GUID is also necessary if you want to have "as" and "is" support. 
It is?
I have been using interfaces without GUID and as/is works fine.
At least as/is Tsomeclass

Benito

On 03/20/2013 04:22 PM, Sven Barth wrote:
> Am 20.03.2013 15:28, schrieb Hans-Peter Diettrich:
>>
>>> While I use interface before in delphi and java, I didn't notice 
>>> that I need a UUID for interface. I had an impression that it has 
>>> something to do with COM?
>>
>> Right, an UUID/GUID for interfaces is Windows COM specific.
>>
>>> So, what is the purpose of this UUID and the method provided by 
>>> TInterfacedObject?
>>
>> The GUID allows to look up the interface definition when a type 
>> library (*.TLB) exists (on a Windows platform).
>
> The GUID is also necessary if you want to have "as" and "is" support.
>
> Regards,
> Sven
>
> -- 
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus




More information about the Lazarus mailing list