S
Steve
Hello,
I am a beginner/intermediate c++ coder. I have a program that I am
writing and would like to be able to distribute to some of my
friends. The problem with this is that the data files required by it
are rather large, and most of them have email accounts with filesize
limits. What I want to do is upload the files they'll need to my
webpage and then have the program itself check to see if the files are
present in the directories (I know how to do this part) and if they
aren't found, then connect to my homepage and download the files.
So basically, the code flow will go like this:
User runs program
Check for File A
File A Not Found
Prompt User -> Not Found, Would you like to Download?
if User says Yes
//THIS IS THE PART I NEED TO BE ABLE TO DO
DownloadFile(File A) from MyHomepage
//END PART I NEED TO KNOW
if user says no
exit program
I found some confusing crap about MFC and etc, but I really need
something in straight c/c++ that can do this same thing, if possible.
If win32 API is a must, or easier, then that would work too I suppose,
but I'm trying to find the most flexible solution I can. Thanks in
advance!
-Steve
I am a beginner/intermediate c++ coder. I have a program that I am
writing and would like to be able to distribute to some of my
friends. The problem with this is that the data files required by it
are rather large, and most of them have email accounts with filesize
limits. What I want to do is upload the files they'll need to my
webpage and then have the program itself check to see if the files are
present in the directories (I know how to do this part) and if they
aren't found, then connect to my homepage and download the files.
So basically, the code flow will go like this:
User runs program
Check for File A
File A Not Found
Prompt User -> Not Found, Would you like to Download?
if User says Yes
//THIS IS THE PART I NEED TO BE ABLE TO DO
DownloadFile(File A) from MyHomepage
//END PART I NEED TO KNOW
if user says no
exit program
I found some confusing crap about MFC and etc, but I really need
something in straight c/c++ that can do this same thing, if possible.
If win32 API is a must, or easier, then that would work too I suppose,
but I'm trying to find the most flexible solution I can. Thanks in
advance!
-Steve