January 21, 2011
> Speaking of COM.. has anyone successfully used COM interfaces in D2?

I once tried to create a DDraw proxy dll but I can't remember how good it worked.
https://bitbucket.org/trass3r/ddrawproxy
January 22, 2011
Hi,

I was just thinking if implementing interfaces as abstract classes could be a workaround. Since D anyways allows multiple inheritance, so would it make sense
to just declare interfaces as abstract classes. Would there be any reason not to do that.

Thanks & Regards
Mandeep
January 23, 2011
"Andrej Mitrovic" <andrej.mitrovich@gmail.com> wrote in message news:mailman.764.1295584412.4748.digitalmars-d-learn@puremagic.com...
> Speaking of COM.. has anyone successfully used COM interfaces in D2? I'm asking because a few months ago I gave them a try but I kept having random access violations. And I *do* mean random, sometimes adding/removing print statements that don't even touch the state of the program would cause a crash. I couldn't even transfer the D1 COM example to D2, even though the D1 example works fine.
>
> I might have to investigate this further soon.

Yes, mostly with DirectX.  One problem I think I ran into was that I found more then one definiton of IUnknown, and only one made derived interfaces COM interfaces.


January 23, 2011
"Mandeep Singh Brar" <mandeep@brars.co.in> wrote in message news:ihf3gs$2kve$1@digitalmars.com...
> Hi,
>
> I was just thinking if implementing interfaces as abstract classes could
> be a workaround. Since D anyways allows multiple inheritance, so would it
> make sense
> to just declare interfaces as abstract classes. Would there be any reason
> not to do that.
>
> Thanks & Regards
> Mandeep

The big one is that D _doesn't_ allow multiple inheritance.


1 2 3
Next ›   Last »