www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - How to use external C Lib?

reply Gregor Kopp <gregor.kopp chello.at> writes:
http://disphelper.sourceforge.net/

I would like to use the Library above in some D programs.

What I know: It's written in C, I've read that this should be relatively 
easy to port to D... or not?

For a absolute beginner like me, what steps could I take to port this to D?

Are there already programs helping with this?
Aug 10 2007
next sibling parent BCS <ao pathlink.com> writes:
Reply to Gregor,

 http://disphelper.sourceforge.net/
 
 I would like to use the Library above in some D programs.
 
 What I know: It's written in C, I've read that this should be
 relatively easy to port to D... or not?
 
 For a absolute beginner like me, what steps could I take to port this
 to D?
 
 Are there already programs helping with this?
 
htod and bcd.grn are suposed to help http://www.dsource.org/projects/bcd http://www.digitalmars.com/d/htod.html
Aug 10 2007
prev sibling parent Daniel919 <Daniel919 web.de> writes:
Gregor Kopp wrote:
 http://disphelper.sourceforge.net/
 
 I would like to use the Library above in some D programs.
 
 What I know: It's written in C, I've read that this should be relatively 
 easy to port to D... or not?
 
 For a absolute beginner like me, what steps could I take to port this to D?
 
 Are there already programs helping with this?
Yes, you can use bcd: http://www.dsource.org/projects/bcd This is a great tool. I even created bindings for openssl with it. Best regards, Daniel
Aug 10 2007