Atlanta Custom Software Development 

 
   Search        Code/Page
 

User Login
Email

Password

 

Forgot the Password?
Services
» Web Development
» Maintenance
» Data Integration/BI
» Information Management
Programming
  Database
Automation
OS/Networking
Graphics
Links
Tools
» Regular Expr Tester
» Free Tools

Make a phone call using TAPI
[ All Languages » VB »  Tapi]

Total Hit ( 4786)

Rate this article:     Poor     Excellent 

 Submit Your Question/Comment about this article

Rating


 


If TAPI libraries are installed on your machine, you can easily dial a number from a VB application using a single API call. Here's a function that encapsulates the call and that returns True if the dialing was successful:

Click here to copy the following block
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

' make a phone call using TAPI
' return True if successfull

Function PhoneCall(ByVal PhoneNumber As String, ByVal DestName As String, _
  Optional ByVal Comment As String) As Boolean
  If tapiRequestMakeCall(Trim$(PhoneNumber), App.Title, Trim$(DestName), _
    Comment) = 0 Then
    PhoneCall = True
  End If
End Function

This code works on Windows 95, Windows 98, Windows NT 4 SP3 or later, and Windows 2000, and requires TAPI 1.3 libraries or a later version.


Submitted By : Nayan Patel  (Member Since : 5/26/2004 12:23:06 PM)

Job Description : He is the moderator of this site and currently working as an independent consultant. He works with VB.net/ASP.net, SQL Server and other MS technologies. He is MCSD.net, MCDBA and MCSE. In his free time he likes to watch funny movies and doing oil painting.
View all (893) submissions by this author  (Birth Date : 7/14/1981 )


Home   |  Comment   |  Contact Us   |  Privacy Policy   |  Terms & Conditions   |  BlogsZappySys

© 2008 BinaryWorld LLC. All rights reserved.