Delphi: Using IPWorks Components in a Custom Package


When creating a Delphi package that uses IPWorks components, you must ensure the package compiles without conflicts by properly configuring the requires clause and temporarily removing the IPWorks package from the IDE.

It is possible to create a Delphi package that uses IPWorks components by following these steps:

Requires Clause

The requires clause of the package source should NOT include a reference to IPWorks. If your requires clause contains a line like ipwcore, remove it so it looks like this:

requires 
rtl, 
vcl; 

Remove IPWorks Package from the IDE Temporarily

To avoid conflicts during compilation, temporarily remove the IPWorks package from the Delphi IDE:

  • Go to Component.
  • Install Packages in Delphi.
  • De-select the IPWorks Toolkit that you are using in your package.

If this step is skipped, Delphi will detect a conflict during compilation and prompt you to reference ipwcore.

After completing these steps, the compiler will automatically import the .pas files for the components used in your package, allowing it to compile successfully.

We appreciate your feedback. If you have any questions, comments, or suggestions about this article please contact our support team at support@nsoftware.com.