Kbase 43620: Unable to call non-void functions defined in dll, error 6069
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/05/1998 |
|
Solution ID: P13620
FACT(s) (Environment):
Progress 9.1x
SYMPTOM(s):
unable to call non-void functions defined in dll, error 6069
'C' Call Stack has been compromised after calling in (6069)
FIX:
Define the return parameter for the API call as a RETURN parameter.
For example:
The following C function
int APIENTRY testDLL( int pin )
would be coded in the 4GL as:
PROCEDURE testDLL EXTERNAL "testDLL.dll":
DEFINE INPUT PARAMETER pin AS LONG.
DEFINE RETURN PARAMETER pres AS LONG.
END PROCEDURE.