| 535 | } |
| 536 | |
| 537 | double TFluidProp::Fi(string InputSpec, double Input1, double Input2, string* ErrorMsg) { |
| 538 | double Output; |
| 539 | |
| 540 | BSTR BSTR_InputSpec = _com_util::ConvertStringToBSTR(InputSpec.c_str()); |
| 541 | BSTR BSTR_Error; |
| 542 | |
| 543 | FluidProp_COM->Fi(BSTR_InputSpec, Input1, Input2, &Output, &BSTR_Error); |
| 544 | |
| 545 | char* lpszErrorMsg = _com_util::ConvertBSTRToString(BSTR_Error); |
| 546 | *ErrorMsg = lpszErrorMsg; |
| 547 | delete[] lpszErrorMsg; |
| 548 | |
| 549 | SysFreeString(BSTR_Error); |
| 550 | SysFreeString(BSTR_InputSpec); |
| 551 | |
| 552 | return Output; |
| 553 | } |
| 554 | |
| 555 | double TFluidProp::Ksi(string InputSpec, double Input1, double Input2, string* ErrorMsg) { |
| 556 | double Output; |
nothing calls this directly
no outgoing calls
no test coverage detected