.lib and .h files conversion to d

Robert Fraser fraserofthenight at gmail.com
Thu Sep 13 23:59:57 PDT 2007


jicman Wrote:

> 
> Greetings.
> 
> I am trying to use an application that has an SDK package.  I have a bunch of c programs and .h headers and .lib files.  This SDK does not have a COM interface, otherwise I would use Juno, but I would like to use D to create a few programs for a few repetitive tasks.
> 
> What is the best way to go about this?
> 
> I know this has been asked probably thousand of times, so if anyone could guide me as to where I can find more info, or give me some steps with this, I would greatly appreciate it.  I tried searching on this, but there was no clear answer.  I did see the, " Converting C .h Files to D Modules" found here,
> 
> http://www.digitalmars.com/d/htomodule.html
> 
> which is a pretty intense job and so I am hoping that there is another way. :-)
> 
> thanks,
> 
> jose

There are programs that do *some* of the work automatically:

http://www.digitalmars.com/d/htod.html
http://www.dsource.org/projects/bcd

You'll still need to verify the output but it's a start.


More information about the Digitalmars-d-learn mailing list