7 ms·
I don't mean that calling COM objects from C doesn't work. I just mean that COM isn't designed to be used from C.
by pcwalton 8y ago
I don't mean that calling COM objects from C doesn't work. I just mean that COM isn't designed to be used from C.
- tonyedgecombe 8y agoActually I think it was, that was the lowest common denominator.
- pjmlp 7y agoNot really, COM is a subset of OLE 2.0, designed to replace VBX as OCX originally. 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/dp/0672302268 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.