Consultor Eletrônico



Kbase 16276: How to pass data from an HLC function back to 4GL ( CALL )
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/05/1998
How to pass data from an HLC function back to 4GL ( CALL )

Arguments passed into a C routine called from HLC MUST be treated
as read-only. Writing into the memory referenced by argv[] array
elements could be detrimental to your application, resulting in
core dumps or other similarly bad behavior.

For the C functions to obtain data from PROGRESS 4GL, manipulate
that data, and have the manipulated value recognized by the 4GL,
you must use shared variables or buffers. This is the method that
is recommended and supported by Progress.

The shared variable approach is illustrated in the kbase entitled
"How to return ERROR or STATUS to 4GL from C ( HLC )". Please
refer to that kbase for more information about passing data
between your the 4GL and your HLC function.


Progress Software Technical Support Note # 16276