[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

TAPI for VB 6

Posted on 2006-05-24
2
Medium Priority
?
352 Views
Last Modified: 2009-12-16
Does anybody have a simple sample that will do the following:

Identify the TAPI devices that I have,
Be able to select a specific device
and make a call through that device.

I have the UI built and I have a simple make call but I want to be able to do the top two items of my request. Here is the sample code:

_____________________________________________________________
Declare Function tapiRequestMakeCall Lib "tapi32.dll" _
         (ByVal stNumber As String, ByVal stDummy1 As String, _
         ByVal stDummy2 As String, ByVal stDummy3 As String) As Long

'Following function receives a phone number to dial.

Function DialNumber (PhoneNumber)

Dim Msg As String
Dim RetVal As Long

' Send the telephone number to the modem.
RetVal = tapiRequestMakeCall(PhoneNumber, "", "", "")
If RetVal < 0 Then
Msg = "Unable to dial number " & PhoneNumber
End If

End Function
0
Comment
Question by:cjinsocal581
2 Comments
 
LVL 3

Assisted Solution

by:fullcontact
fullcontact earned 200 total points
ID: 16758866
0
 
LVL 14

Accepted Solution

by:
Shiju Sasidharan earned 1800 total points
ID: 16774135
Here is a nice source code using Tapi3
it requires no thirt party control

source code will guide you to alter and meet ur requirement

http://www.geocities.com/sfrare/vbtapi3.html
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question