Naturally OLE was designed as C framework back in Win16 days, with endless pages of boilerplate code.
https://www.amazon.com/Windows-Programmers-Guide-Book-Disk/d...
As such COM can be called from C, specially since C++ Windows compilers have a VTBL layout as if they were a plain old C struct with function pointers.
However unless one is masochist, it is not sane to use COM from bare bones C.
Naturally OLE was designed as C framework back in Win16 days, with endless pages of boilerplate code.
https://www.amazon.com/Windows-Programmers-Guide-Book-Disk/d...
As such COM can be called from C, specially since C++ Windows compilers have a VTBL layout as if they were a plain old C struct with function pointers.
However unless one is masochist, it is not sane to use COM from bare bones C.