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

Using your DLL

Once you have built your DLL, other routines in your application can access the variables and routines exported by that DLL using one of the following methods:

If your application accesses an element of a DLL using a FETCH statement, you do not need to take any special action when you link. Unless your application executes that FETCH statement, the DLL does not even need to exist.

If your application accesses an element of a DLL as if it were statically linked with that DLL, then the linker must be able to resolve the name of that element.

Under Windows, the linker can resolve names from a DLL if you link with a import library for that DLL. In fact, that is how the names of PL/I library routines are resolved. For example, when you link with ibmws20i.lib, you are linking with the import library for ibmws20.dll.

Under Windows, the import library for the DLL is built when you create the .EXP file when preparing to link the DLL.

Note:
In order for the loader to find a DLL, the DLL must reside either in your current working directory or in one of the directories listed in the PATH environment variable under Windows.

Terms of use | Feedback

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