

ErrorInfo objects ErrorInfo objects are often called COM exceptions because they allow an object to pass (or throw) rich error information to its caller, even across apartment boundaries. In Microsoft Visual C++, you must explicitly return an HRESULT. Microsoft Visual Basic automatically defines each method with an HRESULT as a return. Using methods that return HRESULTs is fundamental to well-written components and is essential to the debugging process. Lastly, system APIs provide a lookup from an HRESULT to a string that describes the error condition. HRESULTs also report any errors in making function calls or interface method calls and identify the facilities associated with the errors, such as RPC, WIN32, or ITF for interface-specific errors. An HRESULT indicates whether a COM method succeeded or failed. Strategies for Handling Errors in COM overview HRESULT values COM returns an HRESULT value for all methods in all component interfaces. You can use this COM library with any COM-compliant language. 9 Minitab Command Automation Objects My Menu My Menu Overview A Minitab Automation Object Reference Application object ApplicationOptions object UserInterface object OutputWindow object Project object B Worksheet Object Reference Worksheets Collection object Worksheet object Columns Collection object Column object Constants Collection object Constant object Matrices Collection object Matrix object C Command Object Reference Commands Collection object Command object Outputs Collection object Output object OutputDocument object Title object Paragraph object Table object Formula object FormulaCoefficients Collection object FormulaCoefficient objectĤ Contents Graph object OutList object Triangle object Message objectĥ Getting Started 1 Getting Started Introducing Automation in Minitab The COM automation library contains a set of standard COM (Component Object Model) objects that expose much of Minitab s internal functionality. 5 Strategies for Handling Errors in COM overview Data s. can be found at All other marks referenced remain the property of their respective owners. and the Minitab logo are registered trademarks of Minitab, Inc., in the United States and other countries.
