| 5 | 1/1 | 返回列表 |
| 查看: 3198 | 回復(fù): 9 | ||
| 當(dāng)前只顯示滿足指定條件的回帖,點(diǎn)擊這里查看本話題的所有回帖 | ||
orential木蟲 (小有名氣)
|
[求助]
如何用C++6.0調(diào)用refprop物性查詢軟件
|
|
如何用C++6.0調(diào)用refprop物性查詢軟件,在網(wǎng)上搜了很多,只有matlab以及fortran調(diào)用refprop的,想知道為什么,求高手指教,最好能詳細(xì)點(diǎn) |

新蟲 (初入文壇)
至尊木蟲 (職業(yè)作家)
|
看幫助,這個(gè)很容易的。跟MATLAB啥的調(diào)用基本上都是一樣的。 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. 關(guān)鍵有兩點(diǎn): 1) 確認(rèn)REFPROP的??置 The REFPROP fluids directory should be located in "C:\Program Files\REFPROP\fluids". 2) 注??借???程?????REFPROP的版本和你的C++是???對(duì)應(yīng),??是任?????一個(gè)就能用的。 |
至尊木蟲 (職業(yè)作家)
木蟲 (小有名氣)

| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 求調(diào)劑 +3 | QiMing7 2026-03-25 | 4/200 |
|
|---|---|---|---|---|
|
[考研] 0856求調(diào)劑 +11 | zhn03 2026-03-25 | 12/600 |
|
|
[考研]
|
孅華 2026-03-22 | 17/850 |
|
|
[考研] 315分求調(diào)劑 +7 | 26考研上岸版26 2026-03-26 | 7/350 |
|
|
[考研] 材料292調(diào)劑 +12 | 橘頌思美人 2026-03-23 | 12/600 |
|
|
[考研] 材料求調(diào)劑 +5 | .m.. 2026-03-25 | 5/250 |
|
|
[考研]
材料調(diào)劑
5+4
|
想要一壺桃花水 2026-03-25 | 10/500 |
|
|
[考研] 281求調(diào)劑 +3 | 亞克西good 2026-03-26 | 5/250 |
|
|
[考研] 材料考研求調(diào)劑 +3 | Dendel 2026-03-23 | 6/300 |
|
|
[考研] 263求調(diào)劑 +6 | yqdszhdap- 2026-03-22 | 10/500 |
|
|
[考研] 299求調(diào)劑 +4 | 15188958825 2026-03-25 | 4/200 |
|
|
[考研] 334分 一志愿武理-080500 材料求調(diào)劑 +4 | 李李不服輸 2026-03-25 | 4/200 |
|
|
[考研] 機(jī)械學(xué)碩總分317求調(diào)劑!。。 +4 | Acaciad 2026-03-25 | 4/200 |
|
|
[考研] 302求調(diào)劑 +4 | 錦衣衛(wèi)藤椒 2026-03-25 | 4/200 |
|
|
[考研]
|
黃粱一夢(mèng)千年 2026-03-24 | 3/150 |
|
|
[考研]
|
13659058978 2026-03-24 | 4/200 |
|
|
[考研] 341求調(diào)劑(一志愿湖南大學(xué)070300) +5 | 番茄頭--- 2026-03-22 | 6/300 |
|
|
[考研] 328求調(diào)劑 +4 | LHHL66 2026-03-23 | 4/200 |
|
|
[考研] 315分,誠(chéng)求調(diào)劑,材料與化工085600 +3 | 13756423260 2026-03-22 | 3/150 |
|
|
[考研] 306求調(diào)劑 +5 | 來好運(yùn)來來來 2026-03-22 | 5/250 |
|