• 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

    • Why do you disable the spooler? Also, if your printer is an inkjet, it may use more ink by turning it off. Both my printers are on standby, ready to be used when ever I want to.
    • I was thinking a similar thing. But much like a majority of the slop, I think it is incorporating AI for the sake of it. Bloat to say, "look at the new feature!"
    • So glad I don't use Edge and I delete history in my browser every day. This AI stuff is getting too much.
    • City in France is latest to ditch Windows and Office in favor of Linux and FOSS alternatives by Usama Jawad A couple of weeks ago, we learned that Denmark is ditching Windows and Microsoft's Office suite in favor of Linux and LibreOffice. This isn't entirely surprising, as we also heard of German plans to do something similar back in 2021 - that effort aims to migrate 30,000 government PCs by 2027. Now, the French city of Lyon has decided to go in this direction too. As spotted by The Register, the local government of Lyon has decided to ditch Windows, Microsoft's Office applications, and Microsoft SQL, and adopt alternatives like Linux, OnlyOffice, and PostgreSQL. It is interesting to see that the authorities have opted for OnlyOffice, a software available under the GNU Affero General Public License, rather than the more popular alternative, LibreOffice. In a similar vein, it will also rely on a suite called "Territoire Numerique Ouvert" (Open Digital Territory) for online communication and other tasks related to office automation. A French agency that promotes industrial development in local municipalities also awarded a €2 million grant to enhance the suite and get it operational in data centers. According to reports, thousands of individuals are already leveraging Territoire Numerique Ouvert. This is an important turning point for the French city. Lyon is the third-largest city in France, serving over a million people through 10,000 government employees. Thousands of enterprise customers suddenly switching to Linux and similar free and open source software (FOSS) certainly can't be good news for Microsoft, which is likely reeling already from the Danish shock. Just like Denmark, Lyon's primary rationale behind the move is to reduce dependency on software originating from the United States. Another reason is also the desire to extend the life of its hardware, thereby reducing the environmental impact of e-waste. It will be interesting to see if Lyon can stick true to its plans. As some of you may remember, back in 2017, the German city of Munich returned to Windows after spending a decade on Linux.
    • "AI-powered history search" WTF is that supposed to mean ??? Why would anyone need AI assistance to search the browser history? Clippy, search history for me - said no one ever.
  • Recent Achievements

    • Week One Done
      suprememobiles earned a badge
      Week One Done
    • Week One Done
      Marites earned a badge
      Week One Done
    • One Year In
      runge100 earned a badge
      One Year In
    • One Month Later
      runge100 earned a badge
      One Month Later
    • One Month Later
      jfam earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      561
    2. 2
      +FloatingFatMan
      177
    3. 3
      ATLien_0
      168
    4. 4
      Michael Scrip
      123
    5. 5
      Xenon
      122
  • Tell a friend

    Love Neowin? Tell a friend!