Re: Using COM. Please help.

2011-06-27 Thread Nub Public
On 6/27/2011 4:08 PM, David Nadlinger wrote: On 6/27/11 9:04 AM, Nub Public wrote: DMD complains that the function body of funcWrapperWithLessParams isn't abstract. I don't know if there is something COM-specific going on, but you might want to mark the wrapper method »final« – that's at least

Re: Using COM. Please help.

2011-06-27 Thread David Nadlinger
On 6/27/11 9:04 AM, Nub Public wrote: DMD complains that the function body of funcWrapperWithLessParams isn't abstract. I don't know if there is something COM-specific going on, but you might want to mark the wrapper method »final« – that's at least how it works for normal interfaces. David

Re: Using COM. Please help.

2011-06-27 Thread Nub Public
On 6/27/2011 1:28 PM, Andrej Mitrovic wrote: You mean COM interfaces? I usually do this: interface SomeComInterface : IUnknown { extern(Windows): BOOL PrototypeFoo(); } But maybe this is already implicit when deriving from IUnknown, I wouldn't know. But from what I can tell some of t

Re: Using COM. Please help.

2011-06-26 Thread Andrej Mitrovic
You mean COM interfaces? I usually do this: interface SomeComInterface : IUnknown { extern(Windows): BOOL PrototypeFoo(); } But maybe this is already implicit when deriving from IUnknown, I wouldn't know. But from what I can tell some of those prototypes seem to have C linkage, maybe you

Using COM. Please help.

2011-06-26 Thread Nub Public
Hi. I've been trying to use Direct2D and I ran into some problems. 1. When translating the headers from the Windows SDK, what linkage should I use for the interfaces? Currently I use none and it works, but I want some confirmation in case something comes up later and bites my in the @ss. 2.