Important: The information in this document is obsolete and should not be used for new development.
Registering Components
Before a component can be used by an application, the component must be registered with the Component Manager. The Component Manager automatically registers component resources stored in files with file types of'thng'
that are stored in the Extensions folder (for information about the content of component resources, see "Resources" beginning on page 6-77).Alternatively, you can use either the
RegisterComponent
function or theRegisterComponentResource
function to register components. Both applications and components can use these routines to register components.Furthermore, you can use the
RegisterComponentResourceFile
function to register all components specified in a given resource file.Once you have registered your component, applications can find the component and retrieve information about it using the Component Manager routines described earlier in this chapter in "Routines for Applications" beginning on page 6-39.
Finally, you can use the
UnregisterComponent
function to remove a component from the registration list.
- Note
- When an application quits, the Component Manager automatically closes any component connections to that application. In addition, if the application has registered components that reside in its heap space, the Component Manager automatically unregisters those components.
Subtopics
- RegisterComponent
- RegisterComponentResource
- RegisterComponentResourceFile
- UnregisterComponent