Re: [fpc-pascal] FPC and IPv6, and BSD

2012-07-26 Thread ZAN DoYe
On 2012-07-23 21:51, Mark Morgan Lloyd wrote: I'm trying to write a simple finger daemon, capable of both IP4 and IP6. At present it's using an unprivileged socket so as to avoid problems on unix platforms. I appear to be having problems at the bind() call for IP6 (returns -1), which I suspec

Re: [fpc-pascal] Dynamic messaging in Delphi

2012-07-26 Thread Ryan Joseph
Great, I got this working now. This is one small step better because the only string identifier used in code for the interface is in the declaration itself so if the name of the interface gets changed I'll get compiler warnings when I try to invoke it. Thanks. On Jul 26, 2012, at 8:41 AM, Lud

RE : [fpc-pascal] Dynamic messaging in Delphi

2012-07-26 Thread Ludo Brands
http://www.freepascal.org/docs-html/rtl/sysutils/supports.html > I'm getting an identifier not found error with the procedure > "Supports". Where is this defined? > > ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal

Re: [fpc-pascal] Dynamic messaging in Delphi

2012-07-26 Thread Ryan Joseph
On Jul 26, 2012, at 2:32 AM, Graeme Geldenhuys wrote: > > You could also try the Supports() method. eg: > > if Supports(delegate, IMyInterface, intfDelegate) then > intfDelegate.DoThis(1); I'm getting an identifier not found error with the procedure "Supports". Where is this defined? >

Re: [fpc-pascal] Dynamic messaging in Delphi

2012-07-26 Thread Graeme Geldenhuys
On 24 July 2012 15:13, Ryan Joseph wrote: > procedure InvokeDelegate (delegate: TObject); > var > intfDelegate: IMyInterface; > begin > ERROR > intfDelegate := IMyInterface(delegate); > intfDelegate.DoThis(1); > end; You could also try the Supports() method. eg: i