Page 1 of 1

C++ help!

Posted: Sun Jul 18, 2004 10:44 am
by Joe
I am developing an application in C++ which scans a file on my server and if its different from the copy on the users machine then a new copy of the .exe is transferred to the local machine. Everything works perfect but I am looking for a function instead of FTPGetFile(), as the directory permission on my server is set so a password has to be entered in order to do any sort of FTP transactions.

Any help appreciated


Joe 8)

Posted: Sun Jul 18, 2004 10:47 am
by JAM
Perhaps cURL is what you want?

Posted: Sun Jul 18, 2004 10:49 am
by Joe
Ah so its possible for me to integrate cURL within C++?

Posted: Sun Jul 18, 2004 11:35 am
by Buddha443556
How about these three functions: InternetConnect, FtpOpenFile, InternetReadFile?

FTP Sessions

Posted: Sun Jul 18, 2004 11:42 am
by Joe
InternetReadFile is exactly what I required. Everything works perfect now, thanks again guys!

Posted: Sun Jul 18, 2004 11:49 am
by JAM
Me posting the link to the php.net's manual about cURL surely was very helpful... =/ Bad habit.
http://curl.netmirror.org/ for more information. I think you'd manage using InternetReadFile, but I thought I'd post the link just to have it done.

Posted: Sun Jul 18, 2004 11:54 am
by Joe
I will have a look at it JAM. Thanks again :)

Posted: Sun Jul 18, 2004 11:59 am
by Joe
I found this cool reference for anyone who may want to try this function themselves http://coding.derkeiler.com/Archive/C_C ... /2306.html