Calling from generated Java code to a DLL

An EGL Java™ program can call functions in a single, non-EGL dynamic link library (DLL), which might be written in C or COBOL. The file extension for the DLL depends on your environment. Examples include .dll, .so, and .sl.

You create a Library part that has the nativeLibrary stereotype. That part acts as an interface between your EGL program and the DLL. The Library part lists function names and parameters and can use the alias function annotation wherever function names do not match the EGL naming conventions.

Access the functions either by using dot syntax (library.function()) or by creating a use statement that references the library.