Had not Dllimport in D?

xky via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Mar 6 07:20:22 PST 2016


On Sunday, 6 March 2016 at 14:20:34 UTC, WebFreak001 wrote:
> On Sunday, 6 March 2016 at 14:12:35 UTC, xky wrote:
>> First, I really sorry my bad english.
>>
>> I just want to using Ruby dll file(msvcrt-ruby220.dll).
>
> D can import and use functions from a DLL but you are using a 
> C# library, which is probably not going to work. D can only 
> call functions from DLLs with a C or D interface. If you want 
> to make your own shared libraries or use some C DLLs check 
> these links:
>
> http://wiki.dlang.org/Win32_DLLs_in_D (native .dll -> windows)
> https://dlang.org/dll-linux.html (shared object .so -> linux)
> https://github.com/DerelictOrg/DerelictUtil (library for 
> loading dll functions on multiple platforms)

DerelictUtil looks like useful for me. Thank you. :-)


More information about the Digitalmars-d-learn mailing list