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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

SpodletelaAuthor Commented:
Oh and one more thing; i want to make clear port without CYGWIN!!!
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!

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.