Hi!
I m trying to verify an equipment status in a emulator program using a DLL.
PB -> DLL -> read the emulator equipament status
Using the emulator program works well.
In Powerbuilder 2019 R2 - BUILD 2353
- in Global External Functions:
function string ConsultarSAT ( long al_nrSession ) Library "SAT.DLL"
- Calling the function:
string ls_status
ls_status = consultarSAT( 123456 )
I pass a number of 6 digits and return a string.
But, when i execute occurred the error:
Specified argument type differs from from required argument type at runtime in DLL function consultarsat.
(Invalid stack pointer on return from function call) at line ...
I tried many different arguments variables, but i didn't solve this
The sat.dll follow attached
I appreciate some help.
Thanks!
Eduardo