VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Phone Dialer in VB

by Found on the World Wide Web (15 Submissions)
Category: Windows System Services
Compatability: Visual Basic 3.0
Difficulty: Unknown Difficulty
Date Added: Wed 3rd February 2021
Rating: (2 Votes)

Phone Dialer in VB for windows 95. 'thanks to Andre Obelink
'De Visual Basic Groep
'https://www.plus.nl/vbg/

API Declarations
Private Declare Function tapiRequestMakeCall& Lib "TAPI32.DLL" (ByVal DestAdress$, ByVal AppName$, ByVal CalledParty$, ByVal Comment$)

Rate Phone Dialer in VB

'make a new project; 2 textboxen (index 0 & 1); 2 labels (index 0 & 1)
'1 command button
'Insert the next code in the right place (use Insert/File)
'Press F5
------------- code -------------------
Private Sub ChooseNumber(strNumber As String, strAppName As String, strName As String)
  Dim lngResult As Long
  Dim strBuffer As String
  
  lngResult = tapiRequestMakeCall&(strNumber, strAppName, strName, "")
  If lngResult <> 0 Then 'error
    strBuffer = "Error connecting to number: "
    Select Case lngResult
    Case -2&
      strBuffer = strBuffer & " 'PhoneDailer not installed?"
    Case -3&
      strBuffer = strBuffer & "Error : " & CStr(lngResult) & "."
    End Select
    
    MsgBox strBuffer
  End If
  
End Sub
Private Sub Command1_Click()
  Call ChooseNumber(Text1(0).Text, "PhoneDialer", Text1(1).Text)
  
End Sub

Private Sub Form_Load()
  Text1(0).Text = ""
  Text1(1).Text = ""
  
End Sub
Private Sub Form_Unload(Cancel As Integer)
  End
  
End Sub

Download this snippet    Add to My Saved Code

Phone Dialer in VB Comments

No comments have been posted about Phone Dialer in VB. Why not be the first to post a comment about Phone Dialer in VB.

Post your comment

Subject:
Message:
0/1000 characters