Re: [fpc-pascal] Generics problem/question

2010-01-06 Thread Marco van de Voort
In our previous episode, leledumbo said: > Inside TFPGList in implementation section, there are some comparisons done > with relational operators (I forgot what they are, just open fgl.pp). You > need to overload those operators for your record type. Surely, the compiler > wouldn't know how to comp

Re: [fpc-pascal] Generics problem/question

2010-01-06 Thread Marco van de Voort
In our previous episode, leledumbo said: > > Inside TFPGList in implementation section, there are some comparisons done > with relational operators (I forgot what they are, just open fgl.pp). You > need to overload those operators for your record type. Surely, the compiler > wouldn't know how to c

Re: [fpc-pascal] Generics problem/question

2010-01-06 Thread leledumbo
The error message needs to be extended for generics type. Inside TFPGList in implementation section, there are some comparisons done with relational operators (I forgot what they are, just open fgl.pp). You need to overload those operators for your record type. Surely, the compiler wouldn't know

[fpc-pascal] Fwd: wishlist for new forum

2010-01-06 Thread Osvaldo Filho
>From ForPas! New forum made with FPC/Lazarus -- Forwarded message -- From: OsvaldoTCF Date: 2010/1/6 Subject: wishlist To: forpas Please send us your wish list. What you like to have in a forum? What facilities? Interactivity ... __

Re: [fpc-pascal] Help Reading SIP Messages.

2010-01-06 Thread lloyd thomas
OK I think I know the reason why 'ansichar' Just did a bit of code to list the net adaptors in a combobox and All I get is symbols (??? and ?...@?). I think I read somewhere Windows may save adaptor names in unicode since windows 2000 (maybe). procedure TForm1.FormCreate(Sender: TObject); begin Fz

Re: [fpc-pascal] Help Reading SIP Messages.

2010-01-06 Thread Marco van de Voort
In our previous episode, lloyd thomas said: > I have managed to get the zniffer wrapper to compile, but I am worried that > using {$MODE delphi} may not be the best way to produce optimized code. No problem. fpc modes are mostly about syntax, not optimization. If the code is delphi in origin it is

Re: [fpc-pascal] Help Reading SIP Messages.

2010-01-06 Thread lloyd thomas
I have managed to get the zniffer wrapper to compile, but I am worried that using {$MODE delphi} may not be the best way to produce optimized code. Also I have seen other libpcap where they use ansichar instead of char. Is there a reason for this? function Pcap_getAdapternames(Delimiter:char;var E

Re: [fpc-pascal] Help Reading SIP Messages.

2010-01-06 Thread lloyd thomas
No Joy, I get exactly the same error. But putting the following at the start of the unit got me to the next error (which I managed to fix ptr = pointer) {$ifdef FPC} {$MODE delphi} {$endif} 2010/1/6 ik > Try the following (see inline for the answer): > > > On Wed, Jan 6, 2010 at 13:30, lloyd th

Re: [fpc-pascal] Help Reading SIP Messages.

2010-01-06 Thread ik
Try the following (see inline for the answer): On Wed, Jan 6, 2010 at 13:30, lloyd thomas wrote: > Well I have made a start using someone elese libpcap inplementation, but > have bump into my first issue and because of my lack of skill I am not sure > how to code round it. Any Ideas? > I get th

Re: [fpc-pascal] Help Reading SIP Messages.

2010-01-06 Thread lloyd thomas
Well I have made a start using someone elese libpcap inplementation, but have bump into my first issue and because of my lack of skill I am not sure how to code round it. Any Ideas? I get the following errors PlibCap\Pcap.pas(207,13) Error: Illegal qualifier PlibCap\Pcap.pas(207,13) Hint: may be p