D.gnu - Another question
- Vincent Richomme (2/2) Apr 07 2007 Can I use gnu D language to build Windows DLL ?
- David Friedman (9/11) Apr 10 2007 Yes to both. Basically, use the same commands you would for building a C...
Can I use gnu D language to build Windows DLL ? Or load native windows DLL ?
Apr 07 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
Apr 10 2007