Another question
David Friedman
dvdfrdmn at users.ess-eff.net
Tue Apr 10 19:01:40 PDT 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
More information about the D.gnu
mailing list