4 ms·
AFAIR Windows is full-C and COM doesn't rely on C++ object semantics.
by thibauts 12y ago
AFAIR Windows is full-C and COM doesn't rely on C++ object semantics.
- DominikD 12y agoI'm not sure what you mean by "C++ object semantics" but COM objects are just objects, that I'm positive. My code was in .cpp file, not .c - that I'm sure of as well. This is why I'm saying that extensions seem to be guesses - PDBs carry module names w/o extensions.
- asveikau 12y agoNothing stops you from following the COM ABI from C or any other language, which is kind of the point. The .h files generated from the idl have that CINTERFACE macro which has the vtable structs, in a form convenient for consuming from a C (and not C++) program.
- DominikD 12y agoSure it's doable. I wrote some DirectX apps in pure C back in the days. Heck, I wrote one in ASM. But it's art for art's sake. There's no point in complicating your life like that, especially not when you're working on a commercial project.
- deleted 12y ago[deleted]