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