<div dir="ltr"><div><div><div><div>I am trying to call a function in a DLL that has the prototype<br><br></div>double K2F(double)<br><br></div>I can load the DLL:<br> <br><span style="font-family:courier new,monospace">-->link('CoolProp_x64.dll',['PropsSI','K2F'],'c')<br>
Shared archive loaded.<br>Link done.<br> ans =<br> <br> 2. </span><br><br></div><div>I tried to do something like:<br><span style="font-family:courier new,monospace"><br>-->call('K2F',200.0,1,'d','out',[1,1],0,'d')<br>
ans =<br> <br> 1.08D-312</span><br><br></div><div>but that's not the right way to do it. So far I see no way to call a function that returns a double. Am I missing something or is this just an oversight in the development? If this is not possible, where can I file an issue? There are many DLL functions that return values, including all the functions in the library I am trying to wrap.<br>
</div><br></div>Ian<br></div>