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 Fzniffer := TZniffer.create; Combobox1.Items.assign(Fzniffer.Adapters); end; 2010/1/6 Marco van de Voort <mar...@stack.nl> > 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 definitely the best solution. > > > Also I have seen other libpcap where they use ansichar instead of char. > Is > > there a reason for this? > > Yes, D2009 and later where char<>ansichar but char=widechar. > > IOW sb updated that piece for D2009+ > > _______________________________________________ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal >
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal