Registration-free COM client
John via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Jun 29 11:07:50 PDT 2016
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));
More information about the Digitalmars-d-learn
mailing list