文件名称:VC多线程_断点下载_DLL
文件大小:587KB
文件格式:RAR
更新时间:2018-05-29 07:46:45
VC 多线程 断点
适合需要断点 多线程下载的朋友直接使用 typedef void DownLoadCB unsigned long unsigned long ; url dir threadcount typedef void DownLoadFun char char DownLoadCB int ; void DownLoadResult unsigned long cur unsigned long total { CProgressCtrl progress; 头文件中声明 progress CUpdataDlg::m progress; if total 0 { int pos cur 1000 total; if NULL progress { progress >SetPos pos ; } TRACE "pos %d%s cur %d total %d n" pos "%%" cur total ; } } UINT DownLoading void param { HMODULE hDll; hDll LoadLibrary g ModuleFilePath + " DownLoad dll" ; if hDll NULL { DownLoadFun DownLoading DownLoadFun GetProcAddress hDll "DownLoadByUrl" ; if DownLoading NULL { DownLoading "http: 52micromcu com images Tcpudp 1 1 zip" "C: " DownLoadResult 10 ; } if hDll { FreeLibrary hDll ; } } return 0; }">适合需要断点 多线程下载的朋友直接使用 typedef void DownLoadCB unsigned long unsigned long ; url dir threadcount typedef void DownLoadFun char char DownLoadCB int ; void DownLoadResult unsigned long cur unsigned long total { CProgressCtrl progress; 头文 [更多]
【文件预览】:
DownLoad_debug.dll
DownLoad_release.dll
调用方法.c