I have a very strange problem,
I have a function which needs to return a string to DBP which comes from an internal Delphi object (The caption of an edit box), if I set the return type in the DLL's stringlist to integer, I can "read" this value in the DLL's function.
Eg:
ShowMessage(EditBox1.Caption);
Works fine and shows a message box with the caption in.
However, if I set the return type to STRING (S) in the DLL's stringlist, I cannot read the EditBox1.Caption from inside the DLL's function, I just get a nul string.
ShowMessage(EditBox1.Caption);
Shows an empty message box.
The DLL is written in Delphi, does anyone know if DBP does anything different to the stack or something when expecting a string return value rather than an integer return value?