delphi TIdHTTP获取软件版本信息


本文整理自网络,侵删。

 
ver.txt内容:1.0

GetNewVersion(http://www.delphitop.com/ver.txt);

function GetNewVersion(url: string): string;
var
  lHTTP: TIdHTTP;
begin

  Result := '';
  lHTTP := TIdHTTP.create;
  try
    try
      Result := lHTTP.Get(url);
      Result := Result;
    except
      // not responding
    end;
  finally lHTTP.Free;
  end;

end;

相关阅读 >>

Delphi实现md5算法

Delphi 开发64位应用程序使用windows api的注意事项

Delphi 在电脑屏幕上显示图片

Delphi调用游戏call代码

Delphi showdebuginfo 窗口

Delphi qr /条形码扫描仪应用示例代码(使用zxing,tframestand)

Delphi中设置条件断点

Delphi xe6 android 实现base64字符串的解析

Delphi用代码实现注册ocx和dll

Delphi excel表格数据导入数据库

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



打赏

取消

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

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

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

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

评论

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