| 333 | } |
| 334 | |
| 335 | double TFluidProp::IntEnergy(string InputSpec, double Input1, double Input2, string* ErrorMsg) { |
| 336 | double Output; |
| 337 | |
| 338 | BSTR BSTR_InputSpec = _com_util::ConvertStringToBSTR(InputSpec.c_str()); |
| 339 | BSTR BSTR_Error; |
| 340 | |
| 341 | FluidProp_COM->IntEnergy(BSTR_InputSpec, Input1, Input2, &Output, &BSTR_Error); |
| 342 | |
| 343 | char* lpszErrorMsg = _com_util::ConvertBSTRToString(BSTR_Error); |
| 344 | *ErrorMsg = lpszErrorMsg; |
| 345 | delete[] lpszErrorMsg; |
| 346 | |
| 347 | SysFreeString(BSTR_Error); |
| 348 | SysFreeString(BSTR_InputSpec); |
| 349 | |
| 350 | return Output; |
| 351 | } |
| 352 | |
| 353 | double TFluidProp::VaporQual(string InputSpec, double Input1, double Input2, string* ErrorMsg) { |
| 354 | double Output; |
nothing calls this directly
no outgoing calls
no test coverage detected