delphi 字幕下载单元SubDownload.pas


本文整理自网络,侵删。

 翻译来自MPlay的windows编译版中的SubDownloader字幕下载工具。

unit SubDownload;

interface

uses Windows;

type
TFUNC_CallBackFinish = function(number, bad_number: Integer): Pointer;
TFUNC_CallBackA = function(const sub_path: AnsiChar;
is_eng, sub_delay: Integer): Pointer;
TFUNC_CallBackW = function(const sub_path: WideChar;
is_eng, sub_delay: Integer): Pointer;
function DownloaderSubtitleA(const filepath: AnsiChar; eng_sub: BOOL;
Callback: TFUNC_CallBackA; callbf: TFUNC_CallBackFinish): Integer; stdcall;
external 'SubDownload.dll';
function DownloaderSubtitleW(const filepath: WideChar; eng_sub: BOOL;
Callback: TFUNC_CallBackW; callbf: TFUNC_CallBackFinish): Integer; stdcall;
external 'SubDownload.dll';

implementation

end.

相关阅读 >>

Delphi文件操作所涉及的一些函数 附例子

Delphi的常用条件编译指令

Delphi应用程序 paramstr()带有参数

Delphi 10.3.x 截取字符串函数substring 和copy()常用字串符处理函数用法

Delphi 拷贝edit编辑框中的内容

Delphi xe android 调试错误:connection closed gracefully

Delphixe 如何调用stringtojstring

Delphi的idhttp报508 loop detected错误的原因

Delphi中exit,abort,break,continue,halt,runerro 的区别

Delphi 字符串处理单元

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



打赏

取消

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

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

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

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

评论

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