Release 10.1A: OpenEdge Development:
Programming Interfaces

> ## 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 4GL 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 the "Passing CHARACTER values to shared library routines" section 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.

Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095