• 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

    • First, the car manufacturers need to update their entertainment OS to enable this feature. Second, the video app you would use needs to update their app to enable this feature. Third, your paired iPhone configurations need to modify its Driving Mode settings to not lock the CarPlay (or, most likely, reconfigure your phone so Driving Mode does not activate automatically when it is paired to a car). This last point is extra important! Your car's infotainment may have various restrictions when the vehicle is in motion (like you can only fidget so much into the settings while the car is in motion, esp when it detects that there's no other passengers in the vehicle)... and if the phone does not go into Driving Mode when it connects to CarPlay (because the paired device "is always the passenger's phone") then the restriction won't automatically kick-off that way. PS: My VW gives me ~5 seconds of screen interactivity before beeping and saying, "you're driving so focus on that!" (But even this screen can be configured a bit.)
    • Isn't this quite early for an Android release? Usually in the fall. In any case, Samsung users won't see it in the fall. It gives Google plenty of time to fix the OS before Samsung shoves it's OneUI on top of it. I always called Google Pixel users, beta testers. Let them have fun with the issues first.
    • Microsoft Windows 10 Mobile has entered the chat...
    • "Fixed: An issue affecting the complete removal of unused language packs and Feature on Demand (FOD) packages. This led to unnecessary storage use and increase in Windows Update installation time." I'd like to think this means I'll be getting more free space on C: and faster updates, but that's probably hoping for too much.
  • Recent Achievements

    • One Month Later
      POR2GAL4EVER earned a badge
      One Month Later
    • One Year In
      Orpheus13 earned a badge
      One Year In
    • One Month Later
      Orpheus13 earned a badge
      One Month Later
    • Week One Done
      Orpheus13 earned a badge
      Week One Done
    • Week One Done
      serfegyed earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      531
    2. 2
      ATLien_0
      257
    3. 3
      +FloatingFatMan
      192
    4. 4
      +Edouard
      166
    5. 5
      Xenon
      123
  • Tell a friend

    Love Neowin? Tell a friend!