Delphi数值转IP


本文整理自网络,侵删。

 
//数值转IP

function AddrtoIP(addr: Dword): string;
begin
  Result := format('%d.%d.%d.%d', [Lo(Loword(addr)), //最底位
    Hi(Loword(addr)),
      Lo(Hiword(addr)),
      Hi(Hiword(addr))]); //最高位
end;

相关阅读 >>

idftp tencoding and iidtextencoding

Delphi 生成xml 方法 与 Delphi txt文件操作

Delphi char数组、string和pchar的相互转换

Delphi 10.x ide界面

Delphi 格式化输出函数(2): formatdatetime

Delphi edit 让密码变成点

Delphi之数组

Delphi添加任务栏右键菜单

Delphi判断字符串是否包含限制以外的字符 否则置空

Delphi 小数点四舍五入问题

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...