• 0

How to read an excel file w/ C++


Question

Hi,

I have an excel file that is constantly updating... it is receiving stock quotes. I also have a C++ application that I would like to read this excel file. I want to create a loop so that every second it will read say cellls A1 to A500. Is there anyone who'd be able to give me an advice doing this. Also how hard will this be? Will I have a problem with a sharing? cause the excel file is being updated and the C++ program is trying to read it

Thanks

Link to comment
https://www.neowin.net/forum/topic/737284-how-to-read-an-excel-file-w-c/
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Did you even try googling? I'm sure there are plenty of C++ interfaces for excel spreadsheets.

And yes, of course you're going to have some kind of problem if you're trying to read to/write from the same file at the same time. You'll need to figure out a locking mechanism or something else depending on your OS.

  • 0

Checking Google is the best thing, buddy :

- http://www.gidforums.com/t-4528.html

- http://www.wotsit.org/default.asp

And I think this can also do what you are looking for, it is platform independent also

- The Chicago Project

- http://www.codeproject.com/KB/database/cspreadsheet.aspx

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Wi-Fi 6E in 2025? Why? Everything should have Wi-Fi 7 by now, IMO.
    • OK Microsoft, can you please fire the entire Windows team and hire those 20 Xbox developers instead to work on Windows? We'd all pretty much want to have a light and bloat free Windows!
    • Call of Duty: Black Ops 7 is out this year, landing with a "mind-bending" co-op campaign by Pulasthi Ariyasinghe A surprise Call of Duty announcement landed during the Xbox Game Showcase event today, with Treyarch and Raven Software unveiling Call of Duty: Black Ops 7 as the next entry in the massively popular FPS franchise. While many were expecting the 2025 entry to be a Modern Warfare game, this will be the first time in the history of the series that two Black Ops games will be releasing back to back. Watch the teaser trailer above. Black Ops 7 will be set 40 years after the events of Black Ops 6, taking players to 2035 for a more futuristic experience. "Wielding cutting-edge technology, David Mason and his team must fight back against a manipulative enemy who weaponizes fear above all else," says the company. "The Black Ops universe is amazing. The creativity and imagination that goes into the storytelling, the rich character depth, and the incredible moment-to-moment gameplay across all modes is really exceptional," says Matt Cox, General Manager of Call of Duty. "As a team, our vision from the start was to create a back-to-back series experience for our players that embraced the uniqueness of the Black Ops sub-franchise." In another twist, the complete campaign will be playable in co-op in addition to offering solo play like usual. The story will follow a world that's on the brink of chaos, according to Treyarch, where violent conflicts and psychological warfare are rampant. Of course, a complete multiplayer portion with new maps and weapons, as well as another dose of round-based Zombies in the Dark Aether will be included in the package too. The complete reveal for Call of Duty: Black Ops 7 will be releasing later this year before the full launch The title is coming to PC, Xbox Series X|S, Xbox One, PlayStation 5, and PlayStation 4. Game Pass subscribers are gaining access on day one too.
    • Indiana Jones and the Great Circle: The Order of Giants DLC launches this September by Pulasthi Ariyasinghe The Xbox Games Showcase gave a look at the next Indiana Jones adventure today. MachineGames showed up with a trailer for the first DLC pack coming to Indiana Jones and the Great Circle: The Order of Giants. Set in Italy, the fresh story will introduce new locations, puzzles, enemies and more. Watch the reveal trailer above. This Indy journey will be taking place during the main campaign and dive deeper into the tribe of giants, Nephilim Order, that players see in the base game. The story will kick off with Indiana Jones offering help to a young priest named Father Ricci, who is attempting to track down a mysterious artifact. The resulting journey expands into this separate storyline that takes the player beyond Vatican City to explore Rome's streets and the crypts beneath it. “One of the most satisfying parts of developing Indiana Jones and the Great Circle was the opportunity to create the Nephilim Order, the secret society of giants formed by descendants of fallen angels working to atone for their ancestral sins,” says Production Director John Jennings. “That story spans thousands of years and this DLC has given us the opportunity to develop further upon their lore and look at other aspects not covered in the initial story campaign. There’s something new and unexpected to tell here for fans of the game, and we can’t wait for people to be able to play it for themselves.” The Indiana Jones and the Great Circle: The Order of Giants DLC will be releasing on September 4, 2025. It will be available on PC, Xbox Series X|S, and PlayStation 5. Premium Edition, Premium Upgrade, Collector’s Edition, and Collector’s Bundle owners will be receiving the DLC for no extra charge at launch.
    • Could we have a desktop version of this lightweight bloat free Windows 11?
  • Recent Achievements

    • Dedicated
      Epaminombas earned a badge
      Dedicated
    • Veteran
      Yonah went up a rank
      Veteran
    • First Post
      viraltui earned a badge
      First Post
    • Reacting Well
      viraltui earned a badge
      Reacting Well
    • Week One Done
      LunaFerret earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      473
    2. 2
      +FloatingFatMan
      265
    3. 3
      ATLien_0
      235
    4. 4
      snowy owl
      228
    5. 5
      Edouard
      174
  • Tell a friend

    Love Neowin? Tell a friend!