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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to get the real time weather info

How to get the real time weather info

Scheduled Pinned Locked Moved C / C++ / MFC
c++jsontutorialquestion
7 Posts 3 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.
  • R Offline
    R Offline
    Rajesh_Parameswaran
    wrote on last edited by
    #1

    Hi there, I'm looking to get the real time weather of a particular city, when the pincode for the same has been provided. Is there any way in VC++ 6.0 or any Internet API which I can use to get the same? Kindly share your comments on this. Thanks in Advance, Rajesh

    S D 2 Replies Last reply
    0
    • R Rajesh_Parameswaran

      Hi there, I'm looking to get the real time weather of a particular city, when the pincode for the same has been provided. Is there any way in VC++ 6.0 or any Internet API which I can use to get the same? Kindly share your comments on this. Thanks in Advance, Rajesh

      S Offline
      S Offline
      Stuart Dootson
      wrote on last edited by
      #2

      Look at WinInet[^] - that's a good starting point for HTML/HTTP interfacing. If the web-service you're going to use is written using SOAP, then gSOAP[^] may be more appropriate.

      Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

      1 Reply Last reply
      0
      • R Rajesh_Parameswaran

        Hi there, I'm looking to get the real time weather of a particular city, when the pincode for the same has been provided. Is there any way in VC++ 6.0 or any Internet API which I can use to get the same? Kindly share your comments on this. Thanks in Advance, Rajesh

        D Offline
        D Offline
        David Crow
        wrote on last edited by
        #3

        Where are you wanting to get this information from? To my knowledge, there is not a central location like there is with getting the current time.

        "Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

        "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

        R 2 Replies Last reply
        0
        • D David Crow

          Where are you wanting to get this information from? To my knowledge, there is not a central location like there is with getting the current time.

          "Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

          "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

          R Offline
          R Offline
          Rajesh_Parameswaran
          wrote on last edited by
          #4

          Hi David, I've seen a gadget called 'Weather 1.0.0' which comes with Windows Vista - Side Bar. I hope the same can be done using VC++. But I've no clues on how to start with. This needs an internet connection to be active to update the weather information. If someone can provide some pointers on this, will help me in proceeding further to achieve the same. Thanks in Advance, Rajesh

          D 1 Reply Last reply
          0
          • D David Crow

            Where are you wanting to get this information from? To my knowledge, there is not a central location like there is with getting the current time.

            "Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

            "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

            R Offline
            R Offline
            Rajesh_Parameswaran
            wrote on last edited by
            #5

            Hi Stuart / David, I got some information from google. "http://www.google.co.in/ig/api?weather=trivandrum,india" we can specify the city name and the country name in the weather and it will display the contents in XML format. I would like to know, how through programically using VC+ to write the XML contents to a file or even read the contents of the XML so as to extract the weather information. Kindly pass on your comments. Please let me know, if you have a better way to achieve the same. Thanks in Advance, Rajesh

            D 1 Reply Last reply
            0
            • R Rajesh_Parameswaran

              Hi Stuart / David, I got some information from google. "http://www.google.co.in/ig/api?weather=trivandrum,india" we can specify the city name and the country name in the weather and it will display the contents in XML format. I would like to know, how through programically using VC+ to write the XML contents to a file or even read the contents of the XML so as to extract the weather information. Kindly pass on your comments. Please let me know, if you have a better way to achieve the same. Thanks in Advance, Rajesh

              D Offline
              D Offline
              David Crow
              wrote on last edited by
              #6

              Maybe code.google.com has something you can use.

              "Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

              "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

              1 Reply Last reply
              0
              • R Rajesh_Parameswaran

                Hi David, I've seen a gadget called 'Weather 1.0.0' which comes with Windows Vista - Side Bar. I hope the same can be done using VC++. But I've no clues on how to start with. This needs an internet connection to be active to update the weather information. If someone can provide some pointers on this, will help me in proceeding further to achieve the same. Thanks in Advance, Rajesh

                D Offline
                D Offline
                David Crow
                wrote on last edited by
                #7

                Rajesh_Parameswaran wrote:

                If someone can provide some pointers on this, will help me in proceeding further to achieve the same.

                See here.

                "Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

                "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

                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