hehe, thank you, that was what I was looking for. I've created an import lib from the dll and now started to translate the header files following those guidelines.<div>I'm assuming thats how I have to do it? :)</div>
<div><br></div><div>the problem is that it's a lot of work and that I can never really test if what I have so far is really working...<br><br><div class="gmail_quote">2011/8/4 simendsjo <span dir="ltr"><<a href="mailto:simendsjo@gmail.com">simendsjo@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div></div><div class="h5">On 04.08.2011 09:10, maarten van damme wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello everyone,<br>
It's been a couple of days since I've started trying to use the pcap<br>
library with d.<br>
first I've started from scratch but I gave up partly because I don't<br>
know enough of how sockets are implemented in d and how I was going to<br>
be able to bridge those two, I ended up making one giant mess :p.<br>
Then I've stumbled upon htod.exe but as of this moment it refuses to<br>
spit something useful out. I was wondering if someone had ever used it<br>
before?<br>
I do "htod.exe pcap.h ../pcap-stdinc.h *longpath*\winsock2.h<br>
*longpath*\excpt.h"<br>
<br>
Also I don't really know what I have to do with the bindings once I have<br>
working d modules, simply place it with the shipped .lib files and wait<br>
for magic to happen? (I've no experience whatsoever with c(++))<br>
<br>
I'm also prety convinced d could gain a lot more users/libraries if<br>
binding between header files and d files went way easier.<br>
<br>
maarten<br>
</blockquote>
<br></div></div>
The dsource bindings project have many bindings you can look at for examples: <a href="http://dsource.org/projects/bindings" target="_blank">http://dsource.org/projects/<u></u>bindings</a><br>
The win32 binding has some instructions on translating: <a href="http://dsource.org/projects/bindings/wiki/WindowsApi/Instructions" target="_blank">http://dsource.org/projects/<u></u>bindings/wiki/WindowsApi/<u></u>Instructions</a><br>

dpl also has some instructions: <a href="http://www.d-programming-language.org/windows.html" target="_blank">http://www.d-programming-<u></u>language.org/windows.html</a><br>
And some more: <a href="http://www.d-programming-language.org/htomodule.html" target="_blank">http://www.d-programming-<u></u>language.org/htomodule.html</a><br>
<br>
I don't think htod is designed as a one-stop for converting header files. You'll probably have to manually change the file it spits out for all but the simplest cases.<br>
</blockquote></div><br></div>