With Office Automation
Is there an official library for Excel in C/C++ Visual Studio?
Is there an official library for Excel in C/C++ Visual Studio?
Or is there a feature provided by VS?
Developer technologies | C++
3 answers
Sort by: Most helpful
-
-
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.
-
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