We use it everywhere, so it makes sense to enable it everywhere. For anyone not in the know, defining COBJMACROS makes Micrsoft headers for COM objects provide C macros so that instead of having to call foo->lpVtbl->Release(); to unref a COM object, one can call IFoo_Release (foo); Note that thes macros are implemented with inheritance as Release() is defined on the IUnknown base interface (MS' equivalent to GObject) and would otherwise require IUnknown_Release ((IUnknown *) foo); That line works, too - but it is not necessary.
7.9 KiB
7.9 KiB