3 ms·
COM is good and it is anything except disaster. It its raw form, COM is just a small and natural abstraction over plain C interface. Just like a C interface is
by garganzol 7y ago
COM is good and it is anything except disaster. It its raw form, COM is just a small and natural abstraction over plain C interface.
Just like a C interface is a small and nice abstraction over plain registers/stack call models of the past.
The advent of calling conventions like C was a huge step forward in 1970s. Before that, there was a mad zoo of passing parameters via random CPU registers and praying that you made no mistake and it would work without a crash.
COM is no different. IUnknown is just 3 methods (QueryInterface, AddRef, RemoveRef) over a plain C. It immediately brings an ability to use service model design in APIs.