943,719 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 394
  • C++ RSS
Sep 8th, 2009
0

Downloading uploading

Expand Post »
Could someone please tell me a way of uplading and downloading text files without the use of the .net framework and is simple to use.

Thanks
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
teofil20 is offline Offline
2 posts
since Sep 2009
Sep 8th, 2009
0

Re: Downloading uploading

No idea about uploading files, but as for downloading a file, here's an example of how to download a picture of a kitten.
C++ Syntax (Toggle Plain Text)
  1. #include <windows.h>
  2. #pragma comment(lib, "urlmon.lib")
  3.  
  4. int main() {
  5. char url[] = "http://felixgilman.com/wordpress/wp-content/uploads/2008/04/kitten.jpg";
  6. char savename[] = "kitten.jpg";
  7. URLDownloadToFile( NULL, url, savename, 0, NULL );
  8. }
Just search the internet a bit, i'm sure you will figure it out.
Reputation Points: 1429
Solved Threads: 129
Posting Virtuoso
William Hemsworth is offline Offline
1,542 posts
since Mar 2008
Sep 9th, 2009
-1

Re: Downloading uploading

No idea about uploading files, but as for downloading a file, here's an example of how to download a picture of a kitten
This code is wrong.
Initializing is missing and then it won't work on some OS SP...
Reputation Points: -76
Solved Threads: 14
Junior Poster
marco93 is offline Offline
132 posts
since Apr 2008
Sep 9th, 2009
0

Re: Downloading uploading

Click to Expand / Collapse  Quote originally posted by marco93 ...
This code is wrong.
Initializing is missing and then it won't work on some OS SP...
Fix it for me then, genius.
Reputation Points: 1429
Solved Threads: 129
Posting Virtuoso
William Hemsworth is offline Offline
1,542 posts
since Mar 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: 'Advanced' option in VS not available
Next Thread in C++ Forum Timeline: Need help on home work assignment





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC