Build an application DLL

You can tell the Informix® ESQL/C processor to build the Informix® ESQL/C 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 Informix® ESQL/C program as a DLL, follow the guidelines for general-purpose DLLs. For more information, see your system documentation. Compile the Informix® ESQL/C 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 %INFORMIXDIR%\demo\wdemo directory. The Informix® ESQL/C 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.