Jump to content
Sign in to follow this  
billmez

Help with dll use

Recommended Posts

billmez

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,

Bill

FTP4W32.zip

Share this post


Link to post
Share on other sites
seandisanti

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,

Bill

you 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...

Share this post


Link to post
Share on other sites
billmez

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.

Bill

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,

Bill

Share this post


Link to post
Share on other sites
seandisanti

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.

Bill

cool

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.