C语言如何调用REFPROP软件,如何用C++6.0调用refprop物性查询软件

鐪嬪府鍔╋紝杩欎釜寰堝鏄撶殑銆傝窡MATLAB鍟ョ殑璋冪敤鍩烘湰涓婇兘鏄竴鏍风殑銆?

Sample C++ Code

The example C code, called EX_C1.CPP (located in the CPP.Zip file), uses explicit (sometimes called late) linking for the functions in the dll.  All functions exported by the dll have been provided in the header file, REFPROP1.h, for completeness.  All functions exported by REFPROP are in the file PASS_FTN.FOR located the REFPROPFORTRAN directory.  This sample code was tested with the Microsoft Visual C++ compiler in Visual Studio 2003 (Microsoft 32-bit C/C++ Compiler Version 13.10.3077).  The main issues in mixed-language code compiling are function naming conventions, argument passing, and stack maintenance.  Explicit calling of the FORTRAN functions in the dll allows one to define a function pointer name explicitly.  The _stdcall keyword on the function prototype lets the compiler know how arguments will be passed and which side is responsible for cleaning the stack after the function call.

鍏抽敭鏈変袱鐐癸細

1) 纭REFPROP鐨勪?

The REFPROP fluids directory should be located in “C:Program FilesREFPROPfluids”.

2) 娉ㄦ?搴奟EFPROP鐨勭増鏈拰浣犵殑C++鏄搴旓紝涓换鎰炰竴涓氨鑳界敤鐨勩??

文章知识点与官方知识档案匹配,可进一步学习相关知识C技能树首页概览115623 人正在系统学习中 相关资源:烘焙专家标准版365_unity烘焙参数-专业指导文档类资源-CSDN文库

声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!

上一篇 2021年4月15日
下一篇 2021年4月15日

相关推荐