billmez Posted December 21, 2005 Share Posted December 21, 2005 Hi all, I am trying to use ftp4win32.dll with AutoIt 3.1.0 and can't find much about dll use in the help file. I would apprecialte any help or suggestions. The authors documentation is with the dll so I have a function list, etc. and have succesfully used it before in xblite (windows xbasic). The test code follows: ################################################## $dll = DllOpen("ftp4w32.dll") $oresult = DllCall ( $dll, "int", "FtpOpenConnection" , "str", "ftp.mediacoast.net") $uresult = DllCall ( $dll, "int", "FtpSendUserName" , "str", "USERNAME") $presult = DllCall ( $dll, "int", "FtpSendPasswd" , "str", "PASSWORD") $cresult = DllCall ( $dll, "int", "FtpCloseConnection") ################################################## I am just passing the result variables to a MsgBox to test and checking the server log to see if a connection is made. I am getting no returns or log info. I have attached the ftp4win zip dll and info. Thanks, BillFTP4W32.zip Link to comment Share on other sites More sharing options...
seandisanti Posted December 22, 2005 Share Posted December 22, 2005 Hi all,I am trying to use ftp4win32.dll with AutoIt 3.1.0 and can't find much about dll use in the help file. I would apprecialte any help or suggestions.The authors documentation is with the dll so I have a function list, etc. and have succesfully used it before in xblite (windows xbasic). The test code follows:##################################################$dll = DllOpen("ftp4w32.dll")$oresult = DllCall ( $dll, "int", "FtpOpenConnection" , "str", "ftp.mediacoast.net")$uresult = DllCall ( $dll, "int", "FtpSendUserName" , "str", "USERNAME")$presult = DllCall ( $dll, "int", "FtpSendPasswd" , "str", "PASSWORD")$cresult = DllCall ( $dll, "int", "FtpCloseConnection")##################################################I am just passing the result variables to a MsgBox to test and checking the server log to see if a connection is made.I am getting no returns or log info. I have attached the ftp4win zip dll and info.Thanks,Billyou may want to check out some of the other FTP UDF's out there, they may give you examples using the DLL, or give you a better way to do it without that dll... Link to comment Share on other sites More sharing options...
billmez Posted December 23, 2005 Author Share Posted December 23, 2005 Thanks for the reply. After trying this dll for a while, I found the ftp.au3 by W0uter, and with a few mods, it will do what I need. After researching the functions in wininet.dll that are available, I added some constants to the UDF that can be used for ASCII and binary transfers along with a function to send commands to the FTP server for things like a passive connection and transfer type.When I am done I will post the UDF to a new thread.BillHi all,I am trying to use ftp4win32.dll with AutoIt 3.1.0 and can't find much about dll use in the help file. I would apprecialte any help or suggestions.The authors documentation is with the dll so I have a function list, etc. and have succesfully used it before in xblite (windows xbasic). The test code follows:##################################################$dll = DllOpen("ftp4w32.dll")$oresult = DllCall ( $dll, "int", "FtpOpenConnection" , "str", "ftp.mediacoast.net")$uresult = DllCall ( $dll, "int", "FtpSendUserName" , "str", "USERNAME")$presult = DllCall ( $dll, "int", "FtpSendPasswd" , "str", "PASSWORD")$cresult = DllCall ( $dll, "int", "FtpCloseConnection")##################################################I am just passing the result variables to a MsgBox to test and checking the server log to see if a connection is made.I am getting no returns or log info. I have attached the ftp4win zip dll and info.Thanks,Bill Link to comment Share on other sites More sharing options...
seandisanti Posted December 23, 2005 Share Posted December 23, 2005 Thanks for the reply. After trying this dll for a while, I found the ftp.au3 by W0uter, and with a few mods, it will do what I need. After researching the functions in wininet.dll that are available, I added some constants to the UDF that can be used for ASCII and binary transfers along with a function to send commands to the FTP server for things like a passive connection and transfer type.When I am done I will post the UDF to a new thread.Billcool Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now