The C++ IAccessible interface offers a handful of methods that allow you to gather information or perform actions on an object. Each of these methods are well documented on MSDN, but it is up to the creator of an object to implement them correctly. In this article, I’ll be talking about a couple of the inconsistencies you may run into when using these methods due to improper implementations and a lack of restrictions on how they should be implemented.
» More: Microsoft Active Accessibility Methods and Inconsistent Implementations
Posts Tagged ‘C++’
Microsoft Active Accessibility Methods and Inconsistent Implementations
August 12th, 2009Automating Excel 2007 in C++ by Importing the Excel 2007 Type Library
July 21st, 2009When I started trying to write automations for Excel 2007 using C++, I ran into problems right up front. I was trying to use #import to get to the type library for Excel 2007, and was importing what I thought was the correct file. The following was written for a C++ application in Visual Studio 2008 (VS2008), automating Excel 2007.
» More: Automating Excel 2007 in C++ by Importing the Excel 2007 Type Library
Access Microsoft Excel 2007 COM API through Microsoft Active Accessibility
July 15th, 2009A couple days ago I showed you how to access the Microsoft Word 2007 COM API through Microsoft Active Accessibility (MSAA). Today, I’m going to switch it up just a little bit, and use the same method to access the Microsoft Excel 2007 COM API. Again, we’ll be using AccesssibleObjectFromWindow to get at the main Excel::Window object. From that object, you can obtain the Excel Application, and Excel Workbook objects. Some documentation from Microsoft can be found here.
» More: Access Microsoft Excel 2007 COM API through Microsoft Active Accessibility