C Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesC Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old May 10th, 2003, 01:33 PM
Bozpw Bozpw is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2001
Location: Tucson, Arizona, The States
Posts: 73 Bozpw User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via AIM to Bozpw
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!

Reply With Quote
  #2  
Old May 10th, 2003, 01:48 PM
dwise1_aol's Avatar
dwise1_aol dwise1_aol is offline
Contributing User
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jan 2003
Location: USA
Posts: 3,803 dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level) 
Time spent in forums: 1 Month 11 h 40 m 35 sec
Reputation Power: 437
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.

Reply With Quote
  #3  
Old May 10th, 2003, 05:51 PM
Bozpw Bozpw is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2001
Location: Tucson, Arizona, The States
Posts: 73 Bozpw User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via AIM to Bozpw
Microsoft Visual Studio 6.0
OS: Windows

Reply With Quote
  #4  
Old May 10th, 2003, 05:52 PM
Bozpw Bozpw is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2001
Location: Tucson, Arizona, The States
Posts: 73 Bozpw User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via AIM to Bozpw
I'm just making simple dos based programs etc. First year kind of stuff.

Reply With Quote
  #5  
Old May 10th, 2003, 11:54 PM
dwise1_aol's Avatar
dwise1_aol dwise1_aol is offline
Contributing User
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jan 2003
Location: USA
Posts: 3,803 dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level) 
Time spent in forums: 1 Month 11 h 40 m 35 sec
Reputation Power: 437
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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesC Programming > Accessing the Web C++


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway