Hello,
I have an external DLL which I need to use with DLLFUNCTION. In the docs there is mentioned that everything can be called by 'stdcall'.
There are two type of functions, which are explained as follows in the documentation:
int CALL cFunctionOne( SESSION* session)
LPTSTR CALL cFunctionTwo(SESSION* session)
In case of the functions returning an INT, everything is working. In case of the LPTSTR, where the return value should be a string, this isn't working. I always receive a numeric value. In de Xbase++ docs there is mentioned the following: "If the DLL complies with the Xbase++ calling convention, the value may be of any Xbase++ data type. Otherwise, the return value is of numeric data type".
I already tried with dllpreparecall() and dllExecutecall(), but this doesn't affect the result of the function, it just changes the way the function is called.
Any suggestions?
calling external DLL (lptstr call)
Re: calling external DLL (lptstr call)
Hi,
Pablo Botella answered already my question: stringof() from BAP is doing what I want.
Pablo Botella answered already my question: stringof() from BAP is doing what I want.