Need to enter Tapilines
- From: "Dunadain" <Dunadain@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 3 Nov 2005 13:09:03 -0800
Hi all
I have dll for acd control in TAPI 2.2 wich is inside another dll with basic
telephonic handle in TAPI 3.0.
In TAPI 2.2 dll alone I introduce tapiline number like this
Public Sub cmdTAPIINIT_Click()
tapiline.CurrentLineID = txtTAPILINE.Text
lstLineInfo1.Text = "TAPI LINE: #" & tapiline.CurrentLineID
Dim i As Long
For i = 0 To tapiline.numAddresses - 1
AddressName = tapiline.GetAddressName(i)
If Len(AddressName) = 0 Then AddressName = "unnamed"
txtAddress.Text = AddressName
Next
End Sub
but when i put this dll inside other, I can enter any value, I have tried
this..
Private linea As Long
Private AddressName As String
Private m_lineaTAPI As Long
Private m_AddressNameTAPI As String
Private m_lineInfo As String
Property Get AddressNameTAPI() As String
AddressNameTAPI = m_AddressNameTAPI
End Property
Property Get Infolinea() As String
Infolinea = m_lineInfo
End Property
Public Property Let lineaTAPI(ByVal lineaCTI As Long)
m_lineaTAPI = lineaCTI
End Property
Public Property Get lineaTAPI() As Long
lineaTAPI = m_lineaTAPI
End Property
Public Function InicioACD()
Dim success As Boolean
Set tapiline = New capscontrolacd.CvbTAPILine
tapiline.LowAPI = &H10003 ' 1.3 = &H00010003
tapiline.HiAPI = &H20002 ' 3.0 = &H00030000
success = tapiline.Create
If success Then
For linea = 0 To tapiline.numLines - 1
tapiline.CurrentLineID = linea
If tapiline.NegotiatedAPIVersion Then
m_lineaTAPI = linea
End If
Next
End If
m_lineInfo = "TAPI LINE: #" & tapiline.CurrentLineID
Dim i As Long
For i = 0 To tapiline.numAddresses - 1
AddressName = tapiline.GetAddressName(i)
If Len(AddressName) = 0 Then AddressName = "unnamed"
m_AddressNameTAPI = AddressName
Next
End Function
Public Function TAPILinesel()
Set tapiline = New CvbTAPILine
m_lineaTAPI = TAPIInfo.lineadeTAPI
TAPIInfo.lineadeTAPI = tapiline.CurrentLineID
m_lineInfo = "TAPI LINE: #" & tapiline.CurrentLineID
Dim i As Long
For i = 0 To tapiline.numAddresses - 1
AddressName = tapiline.GetAddressName(i)
If Len(AddressName) = 0 Then AddressName = "unnamed"
m_AddressName = AddressName
Next
End Function
And I call this class:
Private Sub cmdstartACD_Click()
Dim ret As Integer
Set acdTAPI = New XCAPSoftphoneX.CAPSACDX
ret = acdTAPI.InicioACD
txtLineTAPI.Text = acdTAPI.lineaTAPI
txtlineinfor.Text = acdTAPI.Infolinea
txtDispvo.Text = acdTAPI.AddressNameTAPI
End Sub
Private Sub cmdtline_Click()
Dim ret As Integer
Dim acdTAPI As New CAPSACDX
ret = acdTAPI.TAPILinesel()
acdTAPI.lineaTAPI = txtLineTAPI.Text
txtlineinfor.Text = acdTAPI.Infolinea
txtDispvo.Text = acdTAPI.AddressNameTAPI
End Sub
First function "InicioACD" works, it shows me lines and address but
"TAPIlinesel" doesn't.
How can I work out this problem with property Let?
What am I doing wrong?
Need help.
Best Regards
Dunadain.
.
- Follow-Ups:
- Re: Need to enter Tapilines
- From: Andreas Marschall [MVP TAPI]
- Re: Need to enter Tapilines
- Prev by Date: Re: problem with second call
- Next by Date: Re: Need to enter Tapilines
- Previous by thread: problem with second call
- Next by thread: Re: Need to enter Tapilines
- Index(es):
Relevant Pages
|