Rational Developer for System z
PL/I for Windows, Version 8.0, Programming Guide

Building dynamic link libraries

Creating DLL source files
Compiling your DLL source
Preparing to link your DLL
Specifying exported names under Windows
Linking your DLL
Using your DLL
Sample program to build a DLL
Using FETCH and RELEASE in your main program
Exporting data from a DLL

Dynamic linking is the process of resolving external references using dynamic link libraries (DLLs). Some advantages of dynamic linking are:

DLLs are typically used to provide common functions that can be used by a number of applications. An application using a DLL can use either load-time dynamic linking or run-time dynamic linking.

You can dynamically link with the supplied run-time DLLs, as well as with your own DLLs. The following steps for creating and using a dynamic link library are described in this chapter:

Each section contains a relevant example from the sample program SORT.PLI, which is packaged with the compiler.


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)