Re: Had not Dllimport in D?

2016-03-06 Thread Rikki Cattermole via Digitalmars-d-learn
On 07/03/16 4:19 AM, xky wrote: On Sunday, 6 March 2016 at 14:21:55 UTC, Rikki Cattermole wrote: Okay, since you clearly have not worked in a native language before, lets start from scratch. [...] Sorry for my idiot question. Thanks. Not idiot, its just where you are at and that's ok :)

Re: Had not Dllimport in D?

2016-03-06 Thread xky via Digitalmars-d-learn
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

Re: Had not Dllimport in D?

2016-03-06 Thread xky via Digitalmars-d-learn
On Sunday, 6 March 2016 at 14:21:55 UTC, Rikki Cattermole wrote: Okay, since you clearly have not worked in a native language before, lets start from scratch. [...] Sorry for my idiot question. Thanks.

Re: Had not Dllimport in D?

2016-03-06 Thread Rikki Cattermole via Digitalmars-d-learn
Okay, since you clearly have not worked in a native language before, lets start from scratch. You want to make some bindings to a shared library called "msvcrt-ruby18". From this I know that it is using the Microsoft Visual C runtime. That means you must build D using this as well. This is

Re: Had not Dllimport in D?

2016-03-06 Thread WebFreak001 via Digitalmars-d-learn
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

Had not Dllimport in D?

2016-03-06 Thread xky via Digitalmars-d-learn
First, I really sorry my bad english. I just want to using Ruby dll file(msvcrt-ruby220.dll). In the case of C#, using System; using System.Collections.Generic; using System.Linq; using System.Text; using