www.digitalmars.com         C & C++   DMDScript  

D.gnu - Another question

reply Vincent Richomme <richom.v free.fr> writes:
Can I use gnu D language to build Windows DLL ?
Or load native windows DLL ?
Apr 07 2007
parent David Friedman <dvdfrdmn users.ess-eff.net> writes:
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
Apr 10 2007