C# Interop
Michal Minich
michal.minich at gmail.com
Mon Jan 31 14:54:40 PST 2011
On Mon, 31 Jan 2011 21:25:11 +0000, Eelco Hoogendoorn wrote:
> Do I just create a D DLL with a bunch of free extern(C) function for
> communication?
Yes, why not.
You can pass struts in extern(C) functions...
> What about marshalling? Is using unsafe pointers back and
> forth the best I can do?
No.
> C# can read from a pointer allocated by D in
> unsafe mode, and D can read from a pinned C# pointer, right?
Yes.
Just an idea, but have you considered using COM. C# interoperates with it
seamlessly and heard of some D projects using it.
one starter link:
http://www.dsource.org/projects/juno/wiki/ComProgramming
More information about the Digitalmars-d
mailing list