C++ interface vs D and com
Adam D. Ruppe via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Jul 12 08:13:02 PDT 2016
On Tuesday, 12 July 2016 at 15:09:26 UTC, Adam Sansier wrote:
> I marked the interface extern(C++) so it's a C++ style
> interface.
> The first field of a COM object is a pointer to its vtable.
If it is a COM interface, you should make it a COM interface by
inheriting from IUnknown.
http://dlang.org/spec/interface.html#com-interfaces
More information about the Digitalmars-d-learn
mailing list