Greenstein has some C++ libraries on his site that evaluate 5 and 7 card poker hands. I've done a bit of work in the past with them when I was working on some short-stacking stuff and it's not too hard to deal with.