[Issue 2041] Spec implies relationship between interfaces and COM objects

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Nov 23 17:22:46 PST 2008


http://d.puremagic.com/issues/show_bug.cgi?id=2041


smjg at iname.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |smjg at iname.com




------- Comment #1 from smjg at iname.com  2008-11-23 19:22 -------
It isn't just an analogy.  By intention, it's talking about compatibility in
the ABI between D interfaces and COM, which is a quite different concept from
that of having the same overall meaning as in some other programming language.

Hence you can use D interfaces to interact with Windows COM objects, and even
to create COM objects of your own.  See the "Com Interfaces" section further
down that page.

The statement I'm not sure about is "It derives from the interface
std.c.windows.com.IUnknown."  It seems that win32.unknwn.IUnknown should work
just as well.

I myself am not familiar with COM enough to know how to try it out, but hope
this helps.


-- 



More information about the Digitalmars-d-bugs mailing list