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
- Add a conditional define to your project following the format USE[PRODNAME]DLL. As an example, USEIPWORKSENCRYPTDLL.
- 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
- Add a conditional define to your project following the format USE[PRODNAME]DLL. As an example, USEIPWORKSENCRYPTDLL.
- Add a conditional define to your project called USE_DYNAMIC_LOADING.
- 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 support@nsoftware.com.