MCPcopy Create free account
hub / github.com/CoolProp/CoolProp / TFluidProp

Method TFluidProp

wrappers/Modelica/src/FluidProp_IF.cpp:37–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35static const IID IID_IFluidProp = {0x2430EE09L, 0x2C1E, 0x4A86, {0xAB, 0x62, 0xCB, 0x67, 0xAE, 0xF6, 0xE4, 0x84}};
36
37TFluidProp::TFluidProp() {
38 // Init OLE
39 CoInitialize(0);
40
41 // Retrieve class factory interface pointer to our FluidProp COM object
42 HRESULT hr = CoGetClassObject(CLSID_FluidProp, CLSCTX_INPROC_SERVER, 0, IID_IClassFactory, (void**)&ClassFactory);
43
44 // Have class factory make the object for us - then release factory
45 if (SUCCEEDED(hr)) {
46 ClassFactory->CreateInstance(0, IID_IFluidProp, (void**)&FluidProp_COM);
47 ClassFactory->Release();
48 ClassFactory = 0;
49 }
50}
51
52TFluidProp::~TFluidProp() {
53 // Free FluidProp object

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected