I am trying to port the TTY sample program to the MFC environment(having given up on the VCTERM sample) and am getting a type cast fault in the CreateThread statement.<br>Has anyone out there tried this port or can throw any light on the fault. I would be happy to send more details of the fault if anyone out there thinks they can help<br><br>Thanks<br><br>Barry