Hi Guys
I want to do some simple tapi programming.
After searching the web I have found the following code which works fine.
however I need to be able to select the Tapi device from a list and use that
device can anyone advise. I would also like some comments on the code below
just incase it is not the best way to go about what I want to do.
Thanks,
Mike.
Private Declare Function tapiRequestMakeCall Lib "TAPI32.DLL" (ByVal Dest As
String, ByVal AppName As String, ByVal CalledParty As String, ByVal Comment
As String) As Long
Private Sub PhoneCall(ByVal sNumber As String, ByVal sName As String)
Dim lRetVal As Long
lRetVal = tapiRequestMakeCall(Trim$(sNumber), Me.ToString, Trim$(sName), "")
If lRetVal <> 0 Then
'Couldn't make the call.
'Take appropriate action
End If
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
PhoneCall("123456", "TheName")
End Sub