Had not Dllimport in D?

WebFreak001 via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Mar 6 06:20:34 PST 2016


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)


More information about the Digitalmars-d-learn mailing list