Rather, I hope so. I am going to delve into an outdated Delphi 5 application that calls DLL calls (also written in D5), passing in a string that the DLL can change if necessary.
I have code for both the DLL and the application. The insert at the top of the DLL source is a note about using ShareMem, and it should be the first line in the uses section of the project, etc.
If I ported it all to D2007, is there a better (or more modern) way to get a Delphi application to share string data using the Delphi DLL? Does D5 ShareMem use material for Delphi 2007 applications (with FastMM, etc.)? I didn’t even have bash when recompiling it all - I just wondered if this bit would be a problem, and if there was an alternative / recommended way to do this?
FWIW, the DLL is completely the first batch (it is used only by this specific application, so recompiling under D2007 will not be a problem either).
source
share