17.7 Other OS/2 Utilities

In addition to LINK and BIND, MASM 6.0 provides other utilities useful for working with OS/2.

EXEHDR

The EXEHDR utility examines and can modify a DOS, Windows, or OS/2 executable file header. In the case of OS/2 and Windows, EXEHDR reports a great deal more information: specifically, it displays the contents of segment tables and lists the attributes of the individual segments.

IMPLIB

The IMPLIB utility creates an import library that you can use when linking with a DLL or group of DLLs. Generally, there are three steps in using a DLL:

1.Copy the DLL to a directory listed in your CONFIG.SYS LIBPATH setting.

2.Run IMPLIB on the DLL to create an import library, or write a module-definition file.

3.Link the import library or module-definition file with any application that uses the DLL.

An import library does not contain executable code but does contain the name and location of dynamic-link calls. These calls are resolved during run time.

Chapter 18 goes into more detail about how to write DLLs.