vc串口通信RS232 一个完整的串口通信程序 hComm = CreateFile("COM1", GENERIC_READ | GENERIC_WRITE, 0 , 0, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL | FILE_FLAG_OVERLAPPED,0);