Advanced Search
Apple Developer Connection
Member Login Log In | Not a Member? Contact ADC

Previous Book Contents Book Index Next

Inside Macintosh: More Macintosh Toolbox /
Chapter 6 - Component Manager / Component Manager Reference
Routines for Applications / Retrieving Component Errors


The GetComponentInstanceError function returns the last error generated by a specific connection to a component.

FUNCTION GetComponentInstanceError 
                  (aComponentInstance: ComponentInstance): OSErr;
A component instance that specifies the connection from which you want error information. Your application obtains the component instance from the OpenDefaultComponent or OpenComponent function.
Once you have retrieved an error code, the Component Manager clears the error code for the connection. If you want to retain that error value, you should save it in your application's local storage.

noErr0No error
invalidComponentID-3000No component with this component identifier

Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996

Get information on Apple products.
Visit the Apple Store online or at retail locations.

Copyright © 2004 Apple Computer, Inc.
All rights reserved. | Terms of use | Privacy Notice