www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - from .h to .d

reply "Lloyd Dupont" <ld-REMOVE galador.net> writes:
let say there is a .h in the windows SDK I'm interested in (namely "msi.h"), 
is there a way to automatically translate it to a .d?
I think I read about such a thing once...

Thanks! 
Jun 02 2011
parent reply Jesse Phillips <jessekphillips+D gmail.com> writes:
Lloyd Dupont Wrote:

 let say there is a .h in the windows SDK I'm interested in (namely "msi.h"), 
 is there a way to automatically translate it to a .d?
 I think I read about such a thing once...
 
 Thanks! 
 

No. Though HtoD will do a pretty good job. It doesn't handle the preprocessor and may not get everything correct requiring some tweaking. http://www.digitalmars.com/d/2.0/htod.html
Jun 02 2011
parent "Lloyd Dupont" <ld-REMOVE galador.net> writes:
Thanks! It will be a good start!

"Jesse Phillips"  wrote in message news:is879j$b5q$1 digitalmars.com...

Lloyd Dupont Wrote:

 let say there is a .h in the windows SDK I'm interested in (namely 
 "msi.h"),
 is there a way to automatically translate it to a .d?
 I think I read about such a thing once...

 Thanks!

No. Though HtoD will do a pretty good job. It doesn't handle the preprocessor and may not get everything correct requiring some tweaking. http://www.digitalmars.com/d/2.0/htod.html
Jun 02 2011