I needed to access the TAPI library in Windows for a client project. I search the archives but couldn't find anything, except a couple of people asking how to use TAPI. I came up with a simple example that I thought I would pass along. This is my first attempt at using Declares.
Declare Function tapiRequestMakeCall Lib "TAPI32.DLL" (PhoneNumber As CString, AppName As CString, CalledParty As CString, Comment As Cstring) As Integer Dim PhoneNumber As String = "555-1212" Dim AppName As String = "MyTestApp" Dim CalledParty As String = "Information" Dim Comment As String = "This is a test call" Dim Status As Integer Status = tapiRequestMakeCall(PhoneNumber, AppName, CalledParty, Comment) If (Status <> 0) Then MsgBox "Error placing call" End If _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html>
