Icon Creating a New External Module Interface Unit

External modules are special native libraries created with Delphi XE2 or higher that expose native classes, types, functions, procedures, and/or global variables to the server application runtime in the Elevate Web Builder Web Server. Once you have created and built an external module using Embaracadero RAD Studio, you will need to create an interface unit for the external module so that the compiler knows how to resolve the native classes, types, functions, procedures, and/or global variables exposed in the external module. Once you have created an external module interface unit, you can use the functionality in the external module just like any other code by simply including a reference to the external module interface unit.

Information Delphi does not support getting information about default values for the parameters of methods, functions, or procedures, so this information is not included in the generated external module source unit.

Use the following steps to create a new external module interface unit:
  • Click on the Library tab on the main menu.


  • Click on the New External Module Interface option on the Library menu:

    Image


  • The New External Module Interface dialog will now appear:

    Image


  • In this dialog, specify the file name of the external module that you wish to generate the interface unit for. You can type in the file name directly, or use the browse button (...) to select the external module using a common Windows file dialog.

    Next, specify the name you would like to give the external module interface unit.


  • Click on the OK button.
A new source unit containing the external module's exposed classes, types, functions, procedures, and/or global variables will now appear in the code editor. Please see the Using the Code Editor topic for more information on using the code editor.
Image