Lazarus working examples

136 views
Skip to first unread message

Aleksandr Motrev

unread,
Sep 6, 2019, 2:26:21 PM9/6/19
to coolprop-users
Hello for everyone. I try to use coolprop with lazarus, but my programs dont work, I have error 000007b on application start. I have similar issues with delphi/lazarus examples officially published on the coolprop site.
For example this dont work:
program project1;

CONST
  COOL_PROP = 'CoolProp.dll';

  function PropsSI(Output: PAnsichar; Name1: PAnsichar; Prop1: Double; Name2: PAnsichar; Prop2: Double; FluidName: PAnsichar): Double; stdcall; external COOL_PROP name '_PropsSI@32';
var
  h: Double;
begin
     h:=PropsSI('H', 'T', 300, 'P', 101325, 'R134a');
     writeln(h);
     readln;
end.
What I am doing wrong, maybe working examples exist anywhere?

Matthis Thorade

unread,
Mar 2, 2022, 3:02:18 AM3/2/22
to coolprop-users, jonas.t...@hotmail.com, mol3...@gmail.com
Hi Aleksandr,
did you get the coupling Coolprop-Lazarus to work in the end? If yes, could you share an example?
Best regards,
Matthis


--
You received this message because you are subscribed to the Google Groups "coolprop-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to coolprop-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/coolprop-users/b12bbbde-daf3-4abf-9ede-7469054a2523%40googlegroups.com.


--
Matthis Thorade
Bellermannstr. 14
13357 Berlin

+49-179-6879254
+49-30-25933766

jonas.t...@hotmail.com

unread,
Mar 2, 2022, 4:27:35 AM3/2/22
to coolprop-users
Hi Alexandr,
I am very curious if you succeeded to run Coolprop from Lazarus.
For a simulation model of a H2 refueling station I made in Lazarus, I would need Coolprop to work from Lazarus too!
Best regards,
Jonas Timmerman
Gent, Belgium
Op woensdag 2 maart 2022 om 09:02:18 UTC+1 schreef matthis...@gmail.com:
Reply all
Reply to author
Forward
0 new messages