Is there an official library for Excel in C/C++ Visual Studio?

아이와즈 1 Reputation point
2021-06-22T09:24:35.757+00:00

Is there an official library for Excel in C/C++ Visual Studio?
Or is there a feature provided by VS?

Developer technologies | C++
{count} votes

3 answers

Sort by: Most helpful
  1. Castorix31 90,686 Reputation points
    2021-06-22T09:30:52.927+00:00
    0 comments No comments

  2. David Lowndes 4,726 Reputation points
    2021-06-22T09:32:51.14+00:00

    You can access the Excel object model using the #import facility and drive Excel through its COM interfaces. Having said that, it's probably much easier to do that using C# or VB, particularly as any examples you'll find will likely be in one of those languages.

    0 comments No comments

  3. RLWA32 49,636 Reputation points
    2021-06-22T09:35:28.23+00:00

    Office applications (including Excel) can be automated by unmanaged C/C++ through the COM interfaces that they expose. These interfaces and related data are described by type libraries that are registered when Office is installed.

    An internet search about Automating Excel using COM and C++ will return many links. For example, automate-excel-from-c

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.