[fpc-pascal] Dynamic messaging in Delphi

Luiz Americo Pereira Camara luizmed at oi.com.br
Wed Jul 25 01:56:00 CEST 2012


Em 24/7/2012 20:17, Ryan Joseph escreveu:
> I never heard of this syntax, is it Delphi only?
>
> Trying this I got "Error: Interface type IMyInterface has no valid 
> GUID". What else do I need to do?

The sintaxe i posted is for COM interfaces.

For CORBA interfaces do

   IMyInterface = interface
    ['myintf']
         procedure DoThis (value: integer);
     end;

if delegate.GetInterface('myintf', intfDelegate) then
    intfDelegate.DoThis


Luiz


>
> Thanks.
>
> On Jul 24, 2012, at 4:26 PM, Luiz Americo Pereira Camara wrote:
>
>>  if delegate.GetInterface(IMyInterface, intfDelegate) then
>>    intfDelegate.DoThis
>
> Regards,
> Ryan Joseph
> thealchemistguild.com <http://thealchemistguild.com>
>
>
>
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal




More information about the fpc-pascal mailing list