您好,请您将FrmAC_QQ窗体中Private Sub cmdSend_Click()事件代码修改为如下内容即可
Dim ToName() As Byte
Dim FromName() As Byte
Dim Msg() As Byte
ToName = Trim(TxtCmpName.Text) & vbNullChar
FromName = Trim(txtFromName.Text) & vbNullChar
Msg = txtMemo.Text & vbNullChar
NetMessageBufferSend ByVal 0&, ToName(0), ByVal 0&, Msg(0), UBound(Msg)