interop with other environments

jcc7 technocrat7 at gmail.com
Thu Apr 26 08:50:20 PDT 2007


== Quote from Alexander Panek (alexander.panek at brainsware.org)'s article
> On Thu, 26 Apr 2007 13:06:03 +0300
> Max Samukha <samukha at voliacable.com> wrote:
> > Using what they call P/Invoke, you should be able to access from a
> > .NET assembly any C functions exported by a dll compiled from D
> > source. If you are adventurous enough you could even try to create
> > a COM wrapper around a .NET assembly and use it from D.
> :O
> That sounds disgusting and evul!
> *hides*

Well, I won't argue that ethics of such a choice ( ;) ), but it should be possible.

I created a COM library with VB.NET. I just used Juno (oldrev's version) to create
an object from the COM library in a D program. I don't know how practical it is,
but it come in handy.

jcc7



More information about the Digitalmars-d mailing list