RAD Studio
ContentsIndex
PreviousUpNext
Refreshing the Type Library

To refresh the type library, choose the Refresh Implementation icon on the Type Library Editor toolbar

Refreshing the type library does the following:

  • Updates the xxxx_TLB units that contain a Delphi or C++ representation of the Type Library.
  • Notifies the IDE's module manager to update the implementation files that contain the implementation for the CoClasses, if the type library is associated with a CoClass that was generated by a wizard.
On the ToolsOptionsEnvironment OptionsDelphi OptionsType Library or the ToolsOptionsEnvironment OptionsC++ OptionsType Library dialog box, you can designate specific instances when the Type Library Editor is to refresh the type library implementation. You can select from the following instances:
  • When renaming the type library.
  • When .ridl file is saved.
Note: If you have renamed items in the type library, refreshing the implementation may create duplicate entries. In this case, you must move your code to the correct entry and delete any duplicates. Similarly, if you delete items in the type library, refreshing the implementation does not remove them from CoClasses (under the assumption that you are merely removing them from visibility to clients). You must delete these items manually in the implementation unit if they are no longer needed.

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!