Hacker News new | ask | show | jobs
by cube00 1747 days ago
This was bread and butter error handling in COM, everything old is new again!
2 comments

Yep, all hail the mighty

    #define CHECK(com_expr) hr = (com_expr); if (FAILED(hr)) { return hr; }
Ah, the memories... glad I don't have to touch it ever again. "And a million other things that, basically, only Don Box ever understood, and even Don Box can’t bear to look at them any more".
COM is where all new OS APIs land nowadays, since Vista.

Even if they are eventually wrapped in .NET libraries.