Re: Linux dll - Windows dll

2014-01-25 Thread Benjamin Thaut

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


Re: Linux dll - Windows dll

2014-01-25 Thread Mineko
Ok thank both of you, looks like I really will have to wait on 
Windows DLL's.


Linux dll - Windows dll

2014-01-24 Thread 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.


Re: Linux dll - Windows dll

2014-01-24 Thread evilrat

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.