Vc2008 serial port read and write implementation class