The message "API tools not found" in the form

In the package, I have a component that implements the ToolAPi interface IOTAIDENotifier. The package can be customized, compiled and displayed on the palette. The method of this component is designed to do something when the project that uses it is compiled (and not executed) ... for now, if everything is OK.

The problem appears later when I use this component in TForm, which belongs to another project. When I try to build it, I get a compiler message. File not found: ToolsAPI.dcu .

Here is the use of the package:

Uses {$IFDEF PACKAGESETUP} DesignIntf, DesignEditors,{$ENDIF} Classes, ToolsAPI; 

PACKAGESETUP is determined only when compiling bpl

When I double-click the error message, the IDE opens a file from which a link to the ToolsAPI is declared ... How can I get rid of this problem?

+4
source share
1 answer

ToolsAPI is available only in development packages. It exists to expose the IDE for configuration and, therefore, is available only in the IDE, that is, in development packages. You will need to remove the ToolsAPI link from your desktop.

+5
source

Source: https://habr.com/ru/post/1416163/


All Articles