Hacker News new | ask | show | jobs
by cosmic_cheese 28 days ago
Nice to see. I wonder how feasible it would be to build a plain C interface… would be nice for building bindings to other languages.
3 comments

If you enjoy calling COM vtables, and doing the reference counting by hand, by all means.
Yeah I remember doing that in one project. And then at least I found c++ and ATL back when it came out. I never went back to doing COM in C after that.
Painful. A lot of the Microsoft interfaces these days are asynchronous and are built around the dev experience of c#/c++ with libraries/runtimes that do a lot of the heavy lifting. So you end up calling functions with ridiculously long names and they aren't like good old win32 calls where you pass in some parameters and you get a result back. Instead you create objects to pass function pointers and data around and who knows when you'll get your result values back.
It will need a flashy name, "WinAPI" or something. Just a suggestion