# Mscomm 的问题

Posted by Jason on July 10, 1999 at 18:37:10:

程式功能是由接收端先送"AAA"然后接收端收到"AAA"再送回"#1122&"

我的程式如下(接收端)
Private Sub Command1_Click()
MSComm1.DTREnable = True
MSComm1.RTSEnable = False
MSComm1.Output = "AAA"
MSComm1.RTSEnable = True
Do
DoEvents
Loop Until MSComm1.InBufferCount <> 14
Text1.Text = MSComm1.Input
End Sub

Private Sub Form_Load()
MSComm1.CommPort = 1
MSComm1.Settings = "2400,e,8,1"

MSComm1.PortOpen = True

End Sub
传送端是传 "#1122&" 执行传送后接收到是 "#??2?"
为何出现三个问号,请高手指点

Follow Ups: