www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Calling a D DLL from Microsoft Visual C/C++ and MinGW

I've gotten calling a D DLL from C++ working, at least with Microsoft 
VC++ and MinGW.  And I presume something similar would work using the 
tools that are included with most compilers.

I wrote up the procedure I used over on this Wiki comments page:
   http://www.prowiki.org/wiki4d/wiki.cgi?DocComments/DLLs

which is the comments page for
   http://www.digitalmars.com/d/dll.html

where the basics of how to make a DLL are explained.

I couldn't get either Bud or Rebuild to make a usable DLL, but I 
contacted developers of both about the issues.

--Bill
Feb 18 2007