BSDiff port to windows (problems with fork())

I want to port this source to windows, but as code is not exactly windows programmer
friendy and i am not some *nix guru i have problems converting it to msvc++. I fixed
code to the point where only fork() and pipe() are making me problems. I could redisign
whole source but i am not quite confortable with it. Can anyone help me? CYGWin is not an option!
Who is Participating?
For Fork() you can use CreateThread, the API is pretty elegant and should be easier to port with.

See this:

To do pipes in Win32, look here:

Keep in mind that this example is for unnamed pipes.  For a good example of named pipes, look here:

A nice C++ wrapper for Win32 pipes:

Hope this helps!
SpodletelaAuthor Commented:
Oh and one more thing; i want to make clear port without CYGWIN!!!
How do you post a closing recommendation?
What exactly is a closing recommendation?


When a cleanup ping (or a Cleanup volunteer) appears and asks for closing recomemndations, this means they ask "Please tell us how do you think this question should be closed." Then when the Volunteer comes to post tthe real recommendation, they read the posted recommendations and in some cases they help to me taken the decision.

OK, thanks
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.