I use JUCE for communicating with Arduinos using a 3rd party serial port class. I believe I grabbed the code from the following thread:
Direct code link: http://www.juce.com/sites/default/files/juce_serialport_v2.zip
On a side note, in my local version, I've replaced the Windows code for getSerialPortPaths(), with code that uses the registry for getting the list of serial ports, and thus doesn't require the extra libraries required for the included version of that function.
Let me know if oyu have any specific questions.