Question

Is there any tutorial about FTP transactions(like download, upload and files/directory listings) using Microsoft Visual C++ 6 using C language instead of C++?

Was it helpful?

Solution

You basically want a WinInet FTP client, which is the Win32 API for this kind of thing. You can do all this in straight C.

There's a decent writeup here:

http://www.teksoftco.com/articles/ftp%20client.htm

but the gist is: you use InternetOpen/InternetConnect to get a connection, then use FtpOpenFile/FtpGetFile/FtpPutFile etc. There are FtpFindFirstFile/NextFile to enumerate directories, and other methods for interrogating your current directory, deleting files, etc.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top