Try OpenEdge Now
skip to main content
Programming Interfaces
External Program Interfaces : Shared Library and DLL Support : Executing a shared library routine : Executing a shared library routine for static access : Options for shared library routine execution
 
Options for shared library routine execution
The proc-name in the RUN statement must match the proc-name in the corresponding PROCEDURE statement, whether or not you declare the shared library routine with the ORDINAL option. Also, proc-name must be declared in the same ABL source file where the RUN statement is executed.
The parameter-list contains INPUT, OUTPUT, and INPUT-OUTPUT parameters in the order defined for the corresponding PROCEDURE statement. If you specify a RETURN parameter for the PROCEDURE statement, you must match it with an OUTPUT parameter in the corresponding RUN statement. You cannot specify a RETURN parameter for a shared library function as a CHARACTER variable. You must use a MEMPTR variable to return a character string. See Passing CHARACTER values to shared library routines for more information. The RUN statement parameter data types must match the data types of the corresponding parameter definitions for the PROCEDURE statement. Any mismatch causes a run-time error.