| 35 | static const IID IID_IFluidProp = {0x2430EE09L, 0x2C1E, 0x4A86, {0xAB, 0x62, 0xCB, 0x67, 0xAE, 0xF6, 0xE4, 0x84}}; |
| 36 | |
| 37 | TFluidProp::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 | |
| 52 | TFluidProp::~TFluidProp() { |
| 53 | // Free FluidProp object |
nothing calls this directly
no outgoing calls
no test coverage detected