| 261 | } |
| 262 | |
| 263 | double TFluidProp::SpecVolume(string InputSpec, double Input1, double Input2, string* ErrorMsg) { |
| 264 | double Output; |
| 265 | |
| 266 | BSTR BSTR_InputSpec = _com_util::ConvertStringToBSTR(InputSpec.c_str()); |
| 267 | BSTR BSTR_Error; |
| 268 | |
| 269 | FluidProp_COM->SpecVolume(BSTR_InputSpec, Input1, Input2, &Output, &BSTR_Error); |
| 270 | |
| 271 | char* lpszErrorMsg = _com_util::ConvertBSTRToString(BSTR_Error); |
| 272 | *ErrorMsg = lpszErrorMsg; |
| 273 | delete[] lpszErrorMsg; |
| 274 | |
| 275 | SysFreeString(BSTR_Error); |
| 276 | SysFreeString(BSTR_InputSpec); |
| 277 | |
| 278 | return Output; |
| 279 | } |
| 280 | |
| 281 | double TFluidProp::Density(string InputSpec, double Input1, double Input2, string* ErrorMsg) { |
| 282 | double Output; |
nothing calls this directly
no outgoing calls
no test coverage detected