Thread overview
Linux dll -> Windows dll
Jan 25, 2014
Mineko
Jan 25, 2014
evilrat
Jan 25, 2014
Benjamin Thaut
Jan 25, 2014
Mineko
January 25, 2014
Alright.. I've been having issues with getting windows DLL's to work with DMD, as in I can't make them and can't even compile without a bunch of errors.

So, I need help on that, as the dll part of the site ain't helping.

Also, any idea on how to convert some of the dll stuff on https://github.com/MinekoRox/Breaker-Engine/blob/master/src/breaker/utility/core.d to be windows compatible, I was having weird issues with that also.
January 25, 2014
On Saturday, 25 January 2014 at 03:13:33 UTC, Mineko wrote:
> Alright.. I've been having issues with getting windows DLL's to work with DMD, as in I can't make them and can't even compile without a bunch of errors.
>
> So, I need help on that, as the dll part of the site ain't helping.
>
> Also, any idea on how to convert some of the dll stuff on https://github.com/MinekoRox/Breaker-Engine/blob/master/src/breaker/utility/core.d to be windows compatible, I was having weird issues with that also.

https://github.com/MinekoRox/Breaker-Engine/blob/master/src/breaker/utility/core.d#L158
you are about this?

it is just "dmd -shared -ofmydll.dll files.d", the problem is that you may have to add DllMain. if this doesn't works for you then put a error or describe what exactly doesn't work.
January 25, 2014
Am 25.01.2014 04:13, schrieb Mineko:
> Alright.. I've been having issues with getting windows DLL's to work
> with DMD, as in I can't make them and can't even compile without a bunch
> of errors.
>
> So, I need help on that, as the dll part of the site ain't helping.
>
> Also, any idea on how to convert some of the dll stuff on
> https://github.com/MinekoRox/Breaker-Engine/blob/master/src/breaker/utility/core.d
> to be windows compatible, I was having weird issues with that also.

Windows Dlls are fundamentally broken. The only thing that works at the moment are DLLs with a C-Interface (written in D). DLL support on Windows is nowhere near the shared library support on linux.
I tried pushing for a fix, but its currently not a priority. See http://wiki.dlang.org/DIP45

Kind Regards
Benjamin Thaut
January 25, 2014
Ok thank both of you, looks like I really will have to wait on Windows DLL's.