What is the status of DLL programming in D 2.065?

Trass3r via Digitalmars-d digitalmars-d at puremagic.com
Sat Jul 26 02:43:46 PDT 2014


On Saturday, 26 July 2014 at 07:53:54 UTC, Matt wrote:
> Are we able to create DLLs easily enough in D now? Do we still 
> need to tell our D DLLs to share their GCs with the calling 
> EXE? And is the wiki page fully up to date on the matter? If 
> not where can we find the up to date information? Or should we 
> be using core.runtime.Runtime.loadLibrary()?

I think so, though the page is still 32-bit/Optlink centric.
http://wiki.dlang.org/Win32_DLLs_in_D

Just created a Win64 dll the other day:
https://github.com/Trass3r/hooksample

But haven't investigated GC/runtime sharing.


More information about the Digitalmars-d mailing list