diff --git a/wrappers/Delphi/Readme.rst b/wrappers/Delphi/Readme.rst index 2204c819..7b460d62 100644 --- a/wrappers/Delphi/Readme.rst +++ b/wrappers/Delphi/Readme.rst @@ -1,7 +1,7 @@ CoolProp Delphi Wrapper Demo ============================ -Bruce Wernick +Bruce Wernick, info@coolit.co.za Created: 13 December 2015 @@ -11,12 +11,12 @@ There are two parts to the demo: 1. The actual DLL interface. 2. A simple ph-chart builder. -The original code was written in C++. In the source folder, you can find the text file exports.txt +The original CoolProp code is written in C++. In the source folder, you can find the text file exports.txt that details the complete list of functions exported by the CoolProp DLL. I have only implemented the essential ones but it would be easy to add any ones I have omitted. The interface mimics the -C header file but there are a few options. The returning string is an array of char. In Delphi, -you could use an array of char parameter. Instead, I chose to use the PAnsiChar because it makes -the dll interface simplere and more universal. One thing you have to be aware of - the calling +C header file but there are a few options. The returning string is an array of character. In Delphi, +you could use an array of AnsiChar parameter. Instead, I chose to use the PAnsiChar because it makes +the dll interface cleaner and more universal. One thing you have to be aware of - the calling program has to create a buffer for the result. If this is not sized sufficiently, then a blank string is returned. This could happen, for example, if a lot of fluids are added to the file. @@ -33,6 +33,7 @@ update. Lazarus users +------------- With some minor changes, you could quite easily run this code with Lazarus.