How do I interface D to a C library based on a DLL?

Hoenir mrmocool at gmx.de
Wed Jun 13 04:46:13 PDT 2007


Christopher Grantham schrieb:
> So far I've tried converting the header to D (manually), which hasn't 
> worked (I get error: 138 data corruption), I think I should be able to 
> interface directly to the C code, but am not confident.
Try using htod: http://www.digitalmars.com/d/htod.html
Also have a look at dmd/samples/d/mydll


More information about the Digitalmars-d-learn mailing list