winzip icon

FTP WININET Win32

Email
Submitted on: 1/2/2015 1:50:00 PM
By: Keith Von (from psc cd)  
Level: Beginner
User Rating: By 5 Users
Compatibility: Microsoft Visual C++
Views: 1154
 
     Simple FTP DOS/WIN32 application that checks the machine day of the week, then goes and downloads the appropriate file for that day. I warn you, I stink at C/C++ and other languages and have only toyed with simple stuff. First, let me say this. I am a Network Engineer, MCSE, CNE, CCNA and work with routers, servers, Novell/NT some database apps/servers, firewalls, security, yada yada.. I wanted to learn C/C++ to be able to read, and understand hopefully, security applications, exploits etc...since I have taken more of an interest in security lately. Of course, in my day-to-day activities, something always comes up that requires me to make a task transparent to the end-users. It seems nobody can start an FTP from a Windows command prompt, login and download a file without it becoming a major ordeal, so they scream to the Information Technology department and make it our job (sound familiar?). So, this is what really prompted me to write something useful in C++. There are probably better ways to handle the checking of the day and firing up your Internet FTP session other than the way I did it, any comments are greatly appreciated on how to streamline this code. First, finding information on search engines/news groups and even MSDN is very difficult. Documentation to a novice is very cryptic, especially when there is very little of it to begin with on Microsoft's site. I had a heck of a time actually getting the simple FTP connection to work and scramble for days working on it. Hopefully, this will make it very apparent on how to get started with WININET to make FTP connections and lead you to bigger and better things. Please comment on the code.
 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Beginner category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments


 There are no comments on this submission.
 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.