Linking for Windows with ESQL Small Client

ESQL provides a Dynamic Link Library (DLL) called esql32.dll (esql32.lib) for Windows applications that use the ESQL Small Client. This contains the Progress client communications and utilities functions to access the Progress OID.

The ESQL Small Client DLL (esql32.dll) contains client communications modules that include Winsock-compatible TCP/IP.

Preparing the Linker Response File

To link your Windows application with the ESQL Small Client, construct a standard Windows linker response file for your application, and include a reference to the import library (esql32.lib) for the ESQL small client DLL.

Figure 3–5 shows a sample linker response file (smallcl.lnk) for an ESQL small client application (inventory.*). The file references include the necessary path prefixes to locate your installation files.

inventory.obj

%DLC%/probuild/esqlc/esql32.lib
/NOLOGO
/OUT:inventory.exe
/MAP:inventory.map
libcmt.lib
kernel32.lib
shell32.lib
user32.lib
comdlg32.lib
gdi32.lib
advapi32.lib
comctl32.lib
winspool.lib
netapi32.lib
wsock32.lib 

Figure 3–5: Sample Linker Response File

Building Your Small Client Application for Windows

After you create your linker response file, complete building your Windows Small Client application. For example, to complete building the small application inventory.* using the sample linker response file smallcl.lnk, enter this command:

Link @smallcl.lnk 

This creates the executable (.EXE) file for your application.


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095