The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Programming Languages
> C Programming
|
Accessing the Web C++
Discuss Accessing the Web C++ in the C Programming forum on Dev Shed. Accessing the Web C++ C programming forum discussing all C derivatives, including C#, C++, Object-C, and even plain old vanilla C. These languages are low level languages, and used on projects such as device drivers, compilers, and even whole computer operating systems.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

May 10th, 2003, 01:33 PM
|
|
Contributing User
|
|
Join Date: Jun 2001
Location: Tucson, Arizona, The States
Posts: 73
Time spent in forums: < 1 sec
Reputation Power: 12
|
|
|
Accessing the Web C++
How hard is it to access the web with C++? How can I do it?
Basically I want to load a file from the web just as if it was a local computer file into my C++ program.
Thank you much!
|

May 10th, 2003, 01:48 PM
|
 |
Contributing User
|
|
Join Date: Jan 2003
Location: USA
|
|
|
I don't have your answer, but I do know that we need to know more.
OS: Linux? Windows? OS X? Something else?
Development platform:
gcc? Visual C++? Borland C++Builder? Whatever the iMac uses? Dev-C++?
Under Visual C++ & Win32, there are higher-level functions called WinInet, which wrapper functions in the Win32 API. There's also ISAPI. If you're doing Win32, that might be the direction you're wanting to go.
|

May 10th, 2003, 05:51 PM
|
|
Contributing User
|
|
Join Date: Jun 2001
Location: Tucson, Arizona, The States
Posts: 73
Time spent in forums: < 1 sec
Reputation Power: 12
|
|
|
Microsoft Visual Studio 6.0
OS: Windows
|

May 10th, 2003, 05:52 PM
|
|
Contributing User
|
|
Join Date: Jun 2001
Location: Tucson, Arizona, The States
Posts: 73
Time spent in forums: < 1 sec
Reputation Power: 12
|
|
|
I'm just making simple dos based programs etc. First year kind of stuff.
|

May 10th, 2003, 11:54 PM
|
 |
Contributing User
|
|
Join Date: Jan 2003
Location: USA
|
|
Quote: Originally posted by Bozpw
I'm just making simple dos based programs etc. First year kind of stuff. |
Under Win32, those "simple dos based programs" are console applications which still have access to the Win32 API and to the MFC. You can do multithreading, load and use DLLs, and also make use of MFC's WinInet wrappers, none of which you could have done just under DOS (ie, on pre-Win95 machines).
As I mentioned, it looks to me -- who has never tried to do what you are wanting to do -- that WinInet and possibly even ISAPI are the keywords that you should research for an answer. If you have access to Kruglinski's "Inside Visual C++" or "Programming MicroSoft Visual C++ 5th Edition" (same book, next edition), then the sockets chapter covers WinInet and the IIS chapter covers ISAPI. For example, the IIS chapter talks about doing an HTTP GET, which is how you fetch a page from a web server.
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|