| 571 | } |
| 572 | |
| 573 | double TFluidProp::Psi(string InputSpec, double Input1, double Input2, string* ErrorMsg) { |
| 574 | double Output; |
| 575 | |
| 576 | BSTR BSTR_InputSpec = _com_util::ConvertStringToBSTR(InputSpec.c_str()); |
| 577 | BSTR BSTR_Error; |
| 578 | |
| 579 | FluidProp_COM->Psi(BSTR_InputSpec, Input1, Input2, &Output, &BSTR_Error); |
| 580 | |
| 581 | char* lpszErrorMsg = _com_util::ConvertBSTRToString(BSTR_Error); |
| 582 | *ErrorMsg = lpszErrorMsg; |
| 583 | delete[] lpszErrorMsg; |
| 584 | |
| 585 | SysFreeString(BSTR_Error); |
| 586 | SysFreeString(BSTR_InputSpec); |
| 587 | |
| 588 | return Output; |
| 589 | } |
| 590 | |
| 591 | double TFluidProp::Zeta(string InputSpec, double Input1, double Input2, string* ErrorMsg) { |
| 592 | double Output; |
nothing calls this directly
no outgoing calls
no test coverage detected