April 07, 2007 Another question | ||||
---|---|---|---|---|
| ||||
Can I use gnu D language to build Windows DLL ? Or load native windows DLL ? |
April 11, 2007 Re: Another question | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vincent Richomme | 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 |
Copyright © 1999-2021 by the D Language Foundation