Using a DRU or a DLL in Delphi Editions

All of our Delphi editions are packaged as a set of .pas files which call down into either a DRU or DLL. By default all libraries will reference the DRU, but it is simple to switch to using the DLL instead. The DLL may be loaded statically or dynamically. Please follow the steps below for your desired settings.

Using a DLL Instead of a DRU

  1. Add a conditional define to your project following the format USE[PRODNAME]DLL. As an example, USEIPWORKSENCRYPTDLL.
  2. Ensure that the product DLL is located next to your executable. A DLL will follow the format [prodname][version].dll. As an example, ipworksencrypt22.dll.

Loading the DLL Dynamically

  1. Add a conditional define to your project following the format USE[PRODNAME]DLL. As an example, USEIPWORKSENCRYPTDLL.
  2. Add a conditional define to your project called USE_DYNAMIC_LOADING.
  3. Ensure that the product DLL is located next to your executable. A DLL will follow the format [prodname][version].dll. As an example, ipworksencrypt22.dll.

Additional Notes

  • The DRU is always loaded dynamically.
  • SecureBlackbox is configured to use the DLL by default. Add NO_USESECUREBLACKBOXDLL to use the DRU instead.

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