https://issues.dlang.org/show_bug.cgi?id=17326 --- Comment #5 from Rainer Schuetze <r.sagitario at gmx.de> --- That's why I've been saying for years that https://wiki.dlang.org/Win32_DLLs_in_D#D_code_calling_D_code_in_DLLs needs a big red warning that it doesn't work but in very simple cases. --