powerbuilder 在FTP方面的功能比较弱,对于比较大的文件保存到数据库中,容易造成速度比较慢!
所以编写此DLL,以方便pb开发同行,少走弯路!
如果在使用该DLL过程中,遇到相关的问题,请加我的QQ:981718568
2010-01-15
下载地址:ftp://www.gysoft.cn/powerbuilder/gyFTPdll.rar
实现的函数有:
function integer of_connect(string as_host,string as_user,string as_password) library "gyFTPdll.dll"
function integer of_ChangeDir(string as_DirName) library "gyFTPdll.dll"
function integer of_downLoadfile(string as_fileName,string as_localFile,boolean ab_resum) library "gyFTPdll.dll"
function integer of_Upfile(string as_fileName,string as_localFile,boolean ab_resum) library "gyFTPdll.dll"
function integer of_init() library "gyFTPdll.dll"
function integer of_close() library "gyFTPdll.dll"
function integer of_show() library "gyFTPdll.dll"
function integer of_hide() library "gyFTPdll.dll"
function boolean of_FileExists(string as_fileName) library "gyFTPdll.dll"
function integer of_makeDir(string as_dir) library "gyFTPdll.dll"
function integer of_deleteFile(string as_fileName) library "gyFTPdll.dll"
function integer of_RemoveDir(string as_dir) library "gyFTPdll.dll"
function integer of_SetTitle(string as_title) library "gyFTPdll.dll"
of_connect 联结服务器
of_changedir 改变当前目录
of_downloadfile 下载文件
of_upfile 上传文件
of_init() 初始化(这是默认不需要调用)
of_close() 关闭FTP联结
of_show() 显示进度条
of_hide() 隐藏进度条
of_fileExists 判断文件是否存在(在FTP上面是否存在)
of_makedir()创建目录
of_deleleFile()删除文件
of_RemoveDir 删除目录
of_settitle()设置进度条窗口的 title
------解决方案--------------------
高人呀!