By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,920 Members | 1,767 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,920 IT Pros & Developers. It's quick & easy.

Tapi with vb.net

P: n/a
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

Nov 21 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.