| 315 | } |
| 316 | |
| 317 | double TFluidProp::Entropy(string InputSpec, double Input1, double Input2, string* ErrorMsg) { |
| 318 | double Output; |
| 319 | |
| 320 | BSTR BSTR_InputSpec = _com_util::ConvertStringToBSTR(InputSpec.c_str()); |
| 321 | BSTR BSTR_Error; |
| 322 | |
| 323 | FluidProp_COM->Entropy(BSTR_InputSpec, Input1, Input2, &Output, &BSTR_Error); |
| 324 | |
| 325 | char* lpszErrorMsg = _com_util::ConvertBSTRToString(BSTR_Error); |
| 326 | *ErrorMsg = lpszErrorMsg; |
| 327 | delete[] lpszErrorMsg; |
| 328 | |
| 329 | SysFreeString(BSTR_Error); |
| 330 | SysFreeString(BSTR_InputSpec); |
| 331 | |
| 332 | return Output; |
| 333 | } |
| 334 | |
| 335 | double TFluidProp::IntEnergy(string InputSpec, double Input1, double Input2, string* ErrorMsg) { |
| 336 | double Output; |
nothing calls this directly
no outgoing calls
no test coverage detected