Consultor Eletrônico



Kbase P122090: How to call a C functions from Progress 4GL?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   2/7/2007
Status: Unverified

GOAL:

How to call a C functions from Progress 4GL?

GOAL:

How to call a C functions from the Progress ABL?

GOAL:

Recommendation on calling a C functions from the 4GL or ABL

FIX:

There are two ways to call C functions from the 4GL: shared libraries (or dll's on Windows) and HLC.

Shared libraries are fairly easy to use and are described in the external interfaces guide. The exact method for creating shared libraries varies slightly from one version of UNIX to another version of UNIX.

HLC allows to link the C code into a _progres executable and call it via the 4GL CALL statement.

By using the shared library mechanism for calling a C code from 4GL, all the database access should be done from the 4GL code.
It is not recommended to do the database access from the C code.