Thread: Question about networking

  1. #1
    Pupil
    Join Date
    Oct 2005
    Location
    Toledo
    Posts
    27

    Question about networking

    One quick question, is it possible to write a basic C++ program that can open a web browser and go to a site when the file is closed? or perhaps load the html text?

    I am looking for something basic that will not require a GUI, Just a basic app. I am sophomore Com Sci student so I am just now starting to scratch the surface with OOP, also the only complier I own is DevC++. If anyone could point me in the right direction I would appreciate it

  2. #2
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    One quick question, is it possible to write a basic C++ program that can open a web browser and go to a site when the file is closed? or perhaps load the html text?
    I'm not quite sure what you mean. It sounds like you want to use a web browser to retrieve information from a web site without actually opening the browser itself. Well you could just write a program that gets the information straight from the website the same way a browser does - Google for "Beej's Guide to Network Programming". And you can display just the text from the website - there's a browser on Linux called Lynx - that converts web pages to a text only format. All you need to do is parse the HTML file that comes back from the website.

    Moved to Networking Forum

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,656
    > is it possible to write a basic C++ program that can open a web browser
    Getting one program to run another is covered in the FAQ
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  4. #4
    Registered User Jaqui's Avatar
    Join Date
    Feb 2005
    Posts
    416
    or call wget ( *x not windows )

    lynx has a windows port.
    http://www.fdisk.com/doslynx/lynxport.htm

    and, parsing html to display the markup is not converting a page to text. the content should already be text. the markup controlls formatting, like bold and colours.
    Quote Originally Posted by Jeff Henager
    If the average user can put a CD in and boot the system and follow the prompts, he can install and use Linux. If he can't do that simple task, he doesn't need to be around technology.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. another do while question
    By kbpsu in forum C++ Programming
    Replies: 3
    Last Post: 03-23-2009, 12:14 PM
  2. networking comfirmation
    By rEtard in forum Networking/Device Communication
    Replies: 1
    Last Post: 07-20-2005, 03:59 PM
  3. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 09:47 PM
  4. opengl DC question
    By SAMSAM in forum Game Programming
    Replies: 6
    Last Post: 02-26-2003, 09:22 PM
  5. Beyond MFC : COM || Networking
    By kuphryn in forum Windows Programming
    Replies: 5
    Last Post: 04-25-2002, 04:28 PM