Try OpenEdge Now
skip to main content
Programming Interfaces
External Program Interfaces : Shared Library and DLL Support : Passing parameters to a shared library routine : Using structure parameters
 
Using structure parameters
Many shared library routines require a pointer to a structure rather then a scalar value. ABL provides the DEFINE VARIABLE...AS MEMPTR statement. Once initialized, you can use the MEMPTR variable with a set of ABL statements and functions to build, read, and modify the contents of any C-compatible structure used by your shared library routines. For basic information on the MEMPTR data type and how to use it, see Introduction to External Program Interfaces. This section provides information on using MEMPTR variables as parameters to shared library routines.
Note: You cannot use the ABL RAW data type to build structures that you pass to shared library routines.