On Wednesday, 29 June 2016 at 17:55:27 UTC, John wrote:
On Wednesday, 29 June 2016 at 14:51:10 UTC, Thalamus wrote:

and the D code (mostly unchanged from your example):

interface ITestInterface
{
    int Identifier();
}

ITestInterface needs to derive from IUnknown.

I realise that doesn't address your question, but the other thing is I'm pretty sure C# will transform the ITestInterface definition into something more like this:

  interface ITextInterface : IUnknown {
    HRESULT Identifier(int* result);
  }

And when it comes to calling it:

  int result;
  checkHR(instance.Indentifier(&result));

Reply via email to