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 REFPROP\FORTRAN 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 Files\REFPROP\fluids".

2) 娉ㄦ�?鍊熷?g▼搴?�?奟EFPROP鐨勭増鏈拰浣犵殑C++鏄?﹀搴旓紝涓?鏄换鎰?�?炰竴涓氨鑳界敤鐨勩�偅�

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值