| 查看: 3263 | 回复: 9 | ||
| 当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖 | ||
orential木虫 (小有名气)
|
[求助]
如何用C++6.0调用refprop物性查询软件
|
|
如何用C++6.0调用refprop物性查询软件,在网上搜了很多,只有matlab以及fortran调用refprop的,想知道为什么,求高手指教,最好能详细点 |
» 猜你喜欢
有没有快的中文核心比较快录用的,纳米材料光催化
已经有4人回复
本人42,博士刚毕业,现在找不到工作,怎么办?:(
已经有21人回复
河北省自然基金
已经有6人回复
有人投过CCC中国控制会议吗?
已经有3人回复
3,4-二羟基苯乙酮如何纯化?
已经有5人回复
国基评审
已经有10人回复
2026-博士申请
已经有4人回复
考研调剂
已经有3人回复
» 本主题相关价值贴推荐,对您同样有帮助:
求Nist软件:Refprop9
已经有23人回复

orential
木虫 (小有名气)
- 应助: 0 (幼儿园)
- 金币: 3700.5
- 散金: 100
- 红花: 1
- 帖子: 170
- 在线: 95.6小时
- 虫号: 1437220
- 注册: 2011-10-11
- 性别: GG
- 专业: 可再生与替代能源利用中的

6楼2012-09-12 17:08:09
li343
至尊木虫 (职业作家)
- 应助: 32 (小学生)
- 金币: 16345.4
- 散金: 138
- 红花: 11
- 沙发: 1
- 帖子: 3033
- 在线: 998.3小时
- 虫号: 579854
- 注册: 2008-07-11
- 性别: GG
- 专业: 工程热物理相关交叉领域
【答案】应助回帖
★
感谢参与,应助指数 +1
天也潇潇: 金币+1, 鼓励应助,建议您重新编辑一下帖子,乱码问题我会及时反馈给管理者 2012-09-12 20:50:35
感谢参与,应助指数 +1
天也潇潇: 金币+1, 鼓励应助,建议您重新编辑一下帖子,乱码问题我会及时反馈给管理者 2012-09-12 20:50:35
|
看帮助,这个很容易的。跟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) 注??借???程?????REFPROP的版本和你的C++是???对应,??是任?????一个就能用的。 |
3楼2012-09-12 16:38:54
li343
至尊木虫 (职业作家)
- 应助: 32 (小学生)
- 金币: 16345.4
- 散金: 138
- 红花: 11
- 沙发: 1
- 帖子: 3033
- 在线: 998.3小时
- 虫号: 579854
- 注册: 2008-07-11
- 性别: GG
- 专业: 工程热物理相关交叉领域
4楼2012-09-12 16:40:17
orential
木虫 (小有名气)
- 应助: 0 (幼儿园)
- 金币: 3700.5
- 散金: 100
- 红花: 1
- 帖子: 170
- 在线: 95.6小时
- 虫号: 1437220
- 注册: 2011-10-11
- 性别: GG
- 专业: 可再生与替代能源利用中的

5楼2012-09-12 17:05:55












回复此楼