| 481 | } |
| 482 | |
| 483 | double TFluidProp::Alpha(string InputSpec, double Input1, double Input2, string* ErrorMsg) { |
| 484 | double Output; |
| 485 | |
| 486 | BSTR BSTR_InputSpec = _com_util::ConvertStringToBSTR(InputSpec.c_str()); |
| 487 | BSTR BSTR_Error; |
| 488 | |
| 489 | FluidProp_COM->Alpha(BSTR_InputSpec, Input1, Input2, &Output, &BSTR_Error); |
| 490 | |
| 491 | char* lpszErrorMsg = _com_util::ConvertBSTRToString(BSTR_Error); |
| 492 | *ErrorMsg = lpszErrorMsg; |
| 493 | delete[] lpszErrorMsg; |
| 494 | |
| 495 | SysFreeString(BSTR_Error); |
| 496 | SysFreeString(BSTR_InputSpec); |
| 497 | |
| 498 | return Output; |
| 499 | } |
| 500 | |
| 501 | double TFluidProp::Beta(string InputSpec, double Input1, double Input2, string* ErrorMsg) { |
| 502 | double Output; |
nothing calls this directly
no outgoing calls
no test coverage detected