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

Exporting data from a DLL

The preceding discussion described how to export external entrys from a DLL. You can also export external data from a DLL. To export external data from a DLL, the data must be declared as RESERVED throughout your application. The following conditions must also apply:

For example, to create a DLL exporting just the variable datatab, the following routine would be used:

*process dllinit;
 
  edata: package reserves( datatab );
 
    dcl datatab char(256) reserved external init( .... );
  end;

To import datatab into a procedure outside this DLL, it would be declared as:

    dcl datatab char(256) reserved(imported) external;

Terms of use | Feedback

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