April 07, 2007
Can I use gnu D language to build Windows DLL ?
Or load native windows DLL ?
April 11, 2007
Vincent Richomme wrote:
> Can I use gnu D language to build Windows DLL ?
> Or load native windows DLL ?

Yes to both. Basically, use the same commands you would for building a C dll, but use the 'gdc' driver:

 dllwrap --output-lib=ddll.lib --driver-name=gdc --dllname=ddll obj1.o obj2.o...

For loading, just use the standard Windows APIs from std.c.windows.windows.

The documentation for writing DLL code in D is at http://www.digitalmars.com/d/dll.html.

David