|
-
Feb 17th, 2003, 01:07 PM
#1
Thread Starter
Junior Member
Download
Is there a way I can download a file from the internet and either parse it in the code immediately or save it to file to open and read later? I'd like this without MFC and either two versions, linux compatible and windows or one that works with both. Thanks a lot!
-
Feb 17th, 2003, 07:28 PM
#2
Frenzied Member
check msdn for
URLDownloadToFile();
you'll need to add urlmon.lib to your project for it to work.
-
Feb 17th, 2003, 08:51 PM
#3
Thread Starter
Junior Member
-
Feb 17th, 2003, 09:41 PM
#4
Frenzied Member
-
Feb 17th, 2003, 09:42 PM
#5
Thread Starter
Junior Member
In Linux you can just use fopen() like any other file though right?
-
Feb 18th, 2003, 08:54 AM
#6
It doesn't work in Linux of course, unless you use WINE.
And you can't use fopen either.
If you're really looking for a platform independent solution without any third party libraries sockets are the way to go, they work nearly identically for windows and UNIX. You only need a few #ifdefs.
But a better idea would be to search Google for some platform independent FTP/HTTP library.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|