Progress
External Program
Interfaces


Declaring a Shared Library Routine

To access a shared library entry point from within Progress, you must declare the routine using a PROCEDURE statement. The declaration is similar to an internal procedure declaration, but instead of containing procedure code, it contains options and parameter definitions that specify how to access the external shared library routine. This is the syntax for a shared library routine declaration:

SYNTAX
PROCEDURE proc-name  EXTERNAL "dllname"
  [ CDECL | PASCAL | STDCALL ]
  [ ORDINAL n ] 
  [ PERSISTENT ] :
  [ parameter-definition ] ...
  END [ PROCEDURE ] . 

NOTE: The PROCEDURE statement that declares the DLL routine can appear anywhere within the 4GL source file. It does not have to precede the RUN statement that invokes it. Typically, the procedure declarations appear at the end of the source file or are written in a separate file that is included in the source file.


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