| 10 | 1/1 | 返回列表 |
| 查看: 3184 | 回復(fù): 9 | |||
orential木蟲 (小有名氣)
|
[求助]
如何用C++6.0調(diào)用refprop物性查詢軟件
|
如何用C++6.0調(diào)用refprop物性查詢軟件,在網(wǎng)上搜了很多,只有matlab以及fortran調(diào)用refprop的,想知道為什么,求高手指教,最好能詳細點 |

|
至尊木蟲 (職業(yè)作家)
|
看幫助,這個很容易的。跟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)鍵有兩點: 1) 確認REFPROP的??置 The REFPROP fluids directory should be located in "C:\Program Files\REFPROP\fluids". 2) 注??借???程?????REFPROP的版本和你的C++是???對應(yīng),??是任?????一個就能用的。 |
至尊木蟲 (職業(yè)作家)
木蟲 (小有名氣)

木蟲 (小有名氣)

至尊木蟲 (職業(yè)作家)
木蟲 (小有名氣)

新蟲 (初入文壇)
| 10 | 1/1 | 返回列表 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 304求調(diào)劑 +9 | 小熊joy 2026-03-14 | 9/450 |
|
|---|---|---|---|---|
|
[考博] 環(huán)境領(lǐng)域全國重點實驗室招收博士1-2名 +3 | QGZDSYS 2026-03-13 | 3/150 |
|
|
[考研] 一志愿蘇州大學(xué)材料工程(085601)專碩有科研經(jīng)歷三項國獎兩個實用型專利一項省級立項 +6 | 大火山小火山 2026-03-16 | 8/400 |
|
|
[論文投稿] 有沒有大佬發(fā)小論文能帶我個二作 +3 | 增銳漏人 2026-03-17 | 4/200 |
|
|
[基金申請] 國自科面上基金字體 +6 | iwuli 2026-03-12 | 7/350 |
|
|
[考研] 一志愿985,本科211,0817化學(xué)工程與技術(shù)319求調(diào)劑 +5 | Liwangman 2026-03-15 | 5/250 |
|
|
[考研] 0703化學(xué)調(diào)劑 +6 | 妮妮ninicgb 2026-03-15 | 9/450 |
|
|
[考研] 材料與化工一志愿南昌大學(xué)327求調(diào)劑推薦 +7 | Ncdx123456 2026-03-13 | 8/400 |
|
|
[考研] 0703 物理化學(xué)調(diào)劑 +3 | 我可以上岸的對?/a> 2026-03-13 | 5/250 |
|
|
[考研] 22408總分284求調(diào)劑 +3 | InAspic 2026-03-13 | 3/150 |
|
|
[考研] 085601材料工程315分求調(diào)劑 +3 | yang_0104 2026-03-15 | 3/150 |
|
|
[考研] 本科南京大學(xué)一志愿川大藥學(xué)327 +3 | 麥田耕者 2026-03-14 | 3/150 |
|
|
[考研] 求材料調(diào)劑 +5 | 隔壁陳先生 2026-03-12 | 5/250 |
|
|
[考研] 工科,求調(diào)劑 +3 | 我887 2026-03-11 | 3/150 |
|
|
[考研] 工科材料085601 279求調(diào)劑 +8 | 困于星晨 2026-03-12 | 10/500 |
|
|
[考研] 274求調(diào)劑 +3 | S.H1 2026-03-12 | 3/150 |
|
|
[考研] 材料301分求調(diào)劑 +5 | Liyouyumairs 2026-03-12 | 5/250 |
|
|
[考研] 0856化學(xué)工程280分求調(diào)劑 +4 | shenzxsn 2026-03-11 | 4/200 |
|
|
[考研] 321求調(diào)劑(食品/專碩) +3 | xc321 2026-03-12 | 6/300 |
|
|
[考研] 081200-11408-276學(xué)碩求調(diào)劑 +3 | 崔wj 2026-03-12 | 4/200 |
|