24小时热门版块排行榜    

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

orential

木虫 (小有名气)

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

如何用C++6.0调用refprop物性查询软件,在网上搜了很多,只有matlab以及fortran调用refprop的,想知道为什么,求高手指教,最好能详细点
回复此楼

» 猜你喜欢

» 本主题相关价值贴推荐,对您同样有帮助:

落花虽有意,锄头本无情
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

orential

木虫 (小有名气)

引用回帖:
7楼: Originally posted by li343 at 2012-09-13 08:29:23
REFPROP自身带有例子的呀,连这都不知道?
一般位置都在C:\Program Files\REFPROP\examples
有两点注意:
1)REFPROP的安装路径;
2)程序的版本,很重要。

说的很模糊啊
落花虽有意,锄头本无情
8楼2012-09-13 11:32:19
已阅   回复此楼   关注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的回帖

li343

至尊木虫 (职业作家)

咋出现乱码了晕!
4楼2012-09-12 16:40:17
已阅   回复此楼   关注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的回帖
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[基金申请] 科研孤儿太难了 +17 我4大白菜 2026-08-20 18/900 2026-08-21 20:57 by zhangev
[基金申请] 看来今天不会放榜了? +8 chengyan1220 2026-08-21 11/550 2026-08-21 17:52 by dcqxinyang
[基金申请] 时间戳又变了 +13 wuchongjun 2026-08-20 19/950 2026-08-21 17:21 by 紫杉醇
[基金申请] filecode,4个jtjc了 +11 ziyangfang 2026-08-19 14/700 2026-08-21 16:51 by applepetty
[基金申请] 让我中一个面上吧! +11 大萍1987 2026-08-20 13/650 2026-08-21 14:48 by 20120902066
[基金申请] 感觉是下周放榜了 +7 angus9576 2026-08-17 12/600 2026-08-21 13:38 by weiyin
[基金申请] 我面上完蛋了 +7 且听虎啸 2026-08-20 8/400 2026-08-21 12:31 by 酷酷墨镜
[基金申请] 什么时候开奖? +7 CrisMessi 2026-08-18 7/350 2026-08-21 12:15 by weiyin
[基金申请] 应该是下周三26日公布了吧? +4 哈哈蛤? 2026-08-21 4/200 2026-08-21 10:58 by Vivilian
[论文投稿] 投稿咨询 +5 wwm09 2026-08-17 7/350 2026-08-21 10:11 by 期刊论文帮手
[基金申请] 基金啊基金 +4 longfie172 2026-08-20 4/200 2026-08-21 08:58 by mark mao
[基金申请] 放榜前的不淡定 40+4 snowwithsea 2026-08-19 13/650 2026-08-21 08:30 by 北京莱茵编辑
[基金申请] 估计是周四 +3 archvillain 2026-08-18 3/150 2026-08-21 01:48 by jnhyjjm
[基金申请] 今天系统多次维护,明天很可能放榜! +10 zju2000 2026-08-16 11/550 2026-08-20 20:02 by cl479861084
[基金申请] 时间戳变了,能看出什么问题? +18 基诺咪客 2026-08-17 23/1150 2026-08-20 17:19 by Godzela
[基金申请] 重要消息,中午系统在维护 +11 yuleib84 2026-08-18 12/600 2026-08-20 11:09 by xskun
[基金申请] 今天放榜吗? +14 布布和一二 2026-08-19 15/750 2026-08-19 18:07 by gltch
[基金申请] 明天放榜? +5 Shxjjxjkx 2026-08-18 5/250 2026-08-18 18:14 by -大大大大大-
[基金申请] 今天维护系统维护 祝所有人 高中 +8 gjjjzhong 2026-08-18 9/450 2026-08-18 13:01 by 家与远方
[基金申请] 93BebMhtakh前后11位开头都是大写 +4 且听虎啸 2026-08-17 5/250 2026-08-18 00:49 by 蔡棒棒菂
信息提示
请填处理意见