I loaded up some old code from Delphi Magazine and when I compile it inside Delphi 2010 I get an E2010 Incompatible types: ‘AnsiChar’ and ‘Char’.
How do I resolve this error?
pAddr := inet_ntoa(AddrIn.sin_addr);
pAddr defined as PChar
inet_ntoa is a function that returns PAnsiChar
Use an AnsiString and a String to safely perform the necessary casts.