Einzelnen Beitrag anzeigen

marabu

Registriert seit: 6. Apr 2005
10.109 Beiträge
 
#4

Re: TIdDNSResolver Problem - Connection reset by peer

  Alt 3. Mai 2008, 16:58
Probiere es mal damit:

Delphi-Quellcode:
function IpStr(ip: Cardinal): string;
var
  a: LongRec absolute ip;
begin
  with a do
    Result := Format('%d.%d.%d.%d', [Bytes[0], Bytes[1], Bytes[2], Bytes[3]]);
end;
  Mit Zitat antworten Zitat