Build an application DLL

You can tell the processor to build the program as a DLL (.dll file) with the -target (or -wd) command-line option. Such a program is called an application DLL.

To build the program as a DLL, follow the guidelines for general-purpose DLLs. For more information, see your system documentation. Compile the source file with the -target:dll (or -wd) to create the application DLL.

For an example of how to build an application DLL, see the WDEMO demonstration program in the %ONEDB_HOME%\demo\wdemo directory. The source file for the sample application DLL is called wdll.ec. To compile this DLL, use the following esql command:
esql -subsystem:windows -target:dll wdll.ec

The source code for the WDEMO executable file is in the wdemo.exe file.