| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1123 人关注过本帖
标题:VB2005方法无法处理事件
只看楼主 加入收藏
dearccl
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2008-1-4
收藏
 问题点数:0 回复次数:0 
VB2005方法无法处理事件
在该版找到一个和我相似的问题,所以也想找人帮我解答一下。拜托!
Private Sub AxPortSIPCoreLib1_InviteTrying(ByVal sender As System.Object, ByVal e As AxPORTSIPCORELIBLib._DPortSIPCoreLibEvents_InviteTryingEvent) Handles AxPortSIPCoreLib1.InviteTrying '如果呼叫方正在呼叫,将触发该事件。
        Dim i As Integer = 0
        Dim state As Boolean = False

        For i = 0 To 4           ‘五条线路
            If e.callID = CallSessions(i).GetCallID Then
                state = True
                Exit For
            End If
        Next

        If state = False Then
            Exit Sub
        End If

        CallSessions(i).SetHoldState(False)

        Dim Text As String = "Line " + CStr(i) ’添加日志
        Text = Text + ": Calling..."
        ListBoxLogs.Items.Add(Text)
    End Sub

  Private Sub AxPortSIPCoreLib1_InviteTrying(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AxPortSIPCoreLib1.RegisterFailure, AxPortSIPCoreLib1.InviteTrying
        Logined = False
        ListBoxLogs.Items.Add("Logged failed")
    End Sub

---------------------------------------------------------------------------------------
方法“Private Sub AxPortSIPCoreLib1_InviteTrying(sender As Object, e As System.EventArgs)”无法处理事件“Public Event InviteTrying(sender As Object, e As AxPORTSIPCORELIBLib._DPortSIPCoreLibEvents_InviteTryingEvent)”,因为它们不具有相同的签名。
搜索更多相关主题的帖子: 方正 state ByVal Dim sender 
2008-01-04 13:15
快速回复:VB2005方法无法处理事件
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.039494 second(s), 10 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved