为了账号安全,请及时绑定邮箱和手机立即绑定

vb代码用c#怎么实 -- RaiseEvent 用c#怎么实现

vb代码用c#怎么实 -- RaiseEvent 用c#怎么实现

12345678_0001 2018-12-06 21:23:48
请问这部分vb代码用c#怎么实现  谢谢 Public Event OnError(ByVal msg As Object)     Public Sub Disconnect()    ....    error_no = CF_send(LT_DATA, DataLen)    If (error_no <> 0) Then      msg = "Socket Error Number:" & (Str(error_no))      TError = msg      RaiseEvent OnError(msg)      Exit Sub    End If    error_no = CF_Leave()    If (error_no <> 0) Then      msg = "Socket Error Number:" & (Str(error_no))      TError = msg      RaiseEvent OnError(msg)      Exit Sub    End If  End Sub
查看完整描述

1 回答

  • 1 回答
  • 0 关注
  • 393 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信