Home > How-To Library > Miscellaneous
How to dial a phone number from your VB app
**************************************************************** * © 2007 CodeItBetter http://www.codeitbetter.com * * This notice MUST stay intact for legal use * **************************************************************** 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
If you would like to submit your code here please us. Do not forget to mention your name. We are always thankful to each and everyone of you who submitted their code here.