Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Retrieving data from internet

Retrieving data from internet

Scheduled Pinned Locked Moved C / C++ / MFC
question
5 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kapgan
    wrote on last edited by
    #1

    I want to make a program that can connect to internet and use up to date information without having to manually enter that information. How do I retrieve information such as a text in a table cell from the IE browser? Can I do that without programmatically openning the browser and/or downloading the whole page?

    G R T 3 Replies Last reply
    0
    • K Kapgan

      I want to make a program that can connect to internet and use up to date information without having to manually enter that information. How do I retrieve information such as a text in a table cell from the IE browser? Can I do that without programmatically openning the browser and/or downloading the whole page?

      G Offline
      G Offline
      greba
      wrote on last edited by
      #2

      What you're asking for is not that simple. I don't know how you would be able to retrieve information from the IE browser, but if you added a web browser component to a MFC dialog you might be able to get some information that way. Retrieving the text from a table cell is impossible without downloading the whole page. This is a restriction of HTML and HTTP. As for your other question "without opening the browser", yes you can download information from the net without opening a web browser but it would still have to act like a web browser. I can't remember the name at the moment but it is possible to use an API to download a website. Greba, My lack of content on my home page should be entertaining.

      1 Reply Last reply
      0
      • K Kapgan

        I want to make a program that can connect to internet and use up to date information without having to manually enter that information. How do I retrieve information such as a text in a table cell from the IE browser? Can I do that without programmatically openning the browser and/or downloading the whole page?

        R Offline
        R Offline
        Ravi Bhavnani
        wrote on last edited by
        #3

        This is exactly why I wrote this[^] article. :) /ravi My new year's resolution: 2048 x 1536 Home | Articles | Freeware | Music ravib@ravib.com

        1 Reply Last reply
        0
        • K Kapgan

          I want to make a program that can connect to internet and use up to date information without having to manually enter that information. How do I retrieve information such as a text in a table cell from the IE browser? Can I do that without programmatically openning the browser and/or downloading the whole page?

          T Offline
          T Offline
          ThatsAlok
          wrote on last edited by
          #4

          It will little easy if you know little bit of ATL. #1 you have two option either Use URLDownloadToFile Function to download the file(html,asp etc) or you can use raw WinInet api to get content of that page(you will find a wrapper class for that Here[^]) #2 now after getting the file, load that file in IHTMLDocument2 and parse the file as required by you.


          "I Think this Will Help" [Vote One Here,.....]

          visit me at http://www.thisisalok.tk
          L 1 Reply Last reply
          0
          • T ThatsAlok

            It will little easy if you know little bit of ATL. #1 you have two option either Use URLDownloadToFile Function to download the file(html,asp etc) or you can use raw WinInet api to get content of that page(you will find a wrapper class for that Here[^]) #2 now after getting the file, load that file in IHTMLDocument2 and parse the file as required by you.


            "I Think this Will Help" [Vote One Here,.....]

            visit me at http://www.thisisalok.tk
            L Offline
            L Offline
            Luke91
            wrote on last edited by
            #5

            Thanks guys.:)

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups