24小时热门版块排行榜    

查看: 3187  |  回复: 9
当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖

orential

木虫 (小有名气)

[求助] 如何用C++6.0调用refprop物性查询软件

如何用C++6.0调用refprop物性查询软件,在网上搜了很多,只有matlab以及fortran调用refprop的,想知道为什么,求高手指教,最好能详细点
回复此楼
落花虽有意,锄头本无情
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

li343

至尊木虫 (职业作家)

咋出现乱码了晕!
4楼2012-09-12 16:40:17
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
查看全部 10 个回答

li343

至尊木虫 (职业作家)

【答案】应助回帖


感谢参与,应助指数 +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
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

orential

木虫 (小有名气)

引用回帖:
4楼: Originally posted by li343 at 2012-09-12 16:40:17
咋出现乱码了晕!

里面有很多代码不懂,路径这些我也知道,能不能详细点
落花虽有意,锄头本无情
5楼2012-09-12 17:05:55
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

orential

木虫 (小有名气)

引用回帖:
4楼: Originally posted by li343 at 2012-09-12 16:40:17
咋出现乱码了晕!

最好能举个例子怎么调用
落花虽有意,锄头本无情
6楼2012-09-12 17:08:09
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 一志愿中海洋材料工程专硕330分求调剂 +3 小材化本科 2026-03-18 3/150 2026-03-18 19:22 by 楤哥
[考研] 26调剂/材料/英一数二/总分289/已过A区线 +7 步川酷紫123 2026-03-13 7/350 2026-03-18 17:12 by 尽舜尧1
[考研] 一志愿天津大学化学工艺专业(081702)315分求调剂 +9 yangfz 2026-03-17 9/450 2026-03-18 12:38 by 尽舜尧1
[考研] 0854,计算机类招收调剂 +3 胡辣汤放糖 2026-03-15 6/300 2026-03-18 12:09 by 上岸上岸……..
[考研] 268求调剂 +7 好运连绵不绝 2026-03-12 8/400 2026-03-17 20:28 by xilongliang
[考研] 本人考085602 化学工程 专硕 +16 不知道叫什么! 2026-03-15 18/900 2026-03-17 17:05 by ruiyingmiao
[考研] 26考研求调剂 +6 丶宏Sir 2026-03-13 6/300 2026-03-17 16:13 by 醉在风里
[考研] 一志愿,福州大学材料专硕339分求调剂 +3 木子momo青争 2026-03-15 3/150 2026-03-17 07:52 by laoshidan
[考研] 070300化学学硕求调剂 +6 太想进步了0608 2026-03-16 6/300 2026-03-16 16:13 by kykm678
[考研] 070303一志愿西北大学学硕310找调剂 +5 d如愿上岸 2026-03-12 8/400 2026-03-16 15:19 by peike
[考研] 求老师收留调剂 +4 jiang姜66 2026-03-14 5/250 2026-03-15 20:11 by Winj1e
[考研] 070305求调剂 +3 mlpqaz03 2026-03-14 4/200 2026-03-15 11:04 by peike
[考研] 085601材料工程315分求调剂 +3 yang_0104 2026-03-15 3/150 2026-03-15 10:58 by peike
[考研] 材料080500调剂求收留 +3 一颗meteor 2026-03-13 3/150 2026-03-14 10:54 by peike
[考研] 304求调剂 +6 Mochaaaa 2026-03-12 7/350 2026-03-13 22:18 by 星空星月
[考研] 281求调剂 +9 Koxui 2026-03-12 11/550 2026-03-13 20:50 by Koxui
[考研] 求调剂 +3 程雨杭 2026-03-12 3/150 2026-03-13 15:06 by JourneyLucky
[论文投稿] 投稿问题 5+4 星光灿烂xt 2026-03-12 6/300 2026-03-13 14:17 by god_tian
[考研] 277求调剂 +4 anchor17 2026-03-12 4/200 2026-03-13 11:15 by 白夜悠长
[考研] 333求调剂 +3 152697 2026-03-12 4/200 2026-03-13 07:08 by Iveryant
信息提示
请填处理意见