Access violation when calling C DLL from D

Atila Neves via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Nov 2 07:56:18 PST 2015


On Monday, 2 November 2015 at 02:30:09 UTC, AnoHito wrote:
> On Monday, 2 November 2015 at 02:13:29 UTC, BBasile wrote:
>> On Monday, 2 November 2015 at 01:02:45 UTC, AnoHito wrote:
>>> [...]
>>> the headers are very long and complicated, and porting them 
>>> entirely to D would be a huge project in and of itself.
>>> [...]
>>
>> You can give a try at h2d, the C header to D interface 
>> converter:
>>
>> http://dlang.org/htod.html
>
> I did, but it just produced a ton of errors...

Try this instead:

https://github.com/jacob-carlborg/dstep

It's been used to convert C Ruby declarations to D:

https://github.com/jacob-carlborg/orbit/tree/master/ruby

Atila


More information about the Digitalmars-d-learn mailing list