Which OS and compiler are you using? There´s a fantastic free MFC library available at CSerialPort by PJ Naughter