home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic 4 Unleashed
/
Visual_Basic_4_Unleashed_SAMS_Publishing_1995.iso
/
source
/
chap26
/
call.frm
next >
Wrap
Text File
|
1995-06-11
|
1KB
|
44 lines
VERSION 4.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 4140
ClientLeft = 1140
ClientTop = 1515
ClientWidth = 6690
Height = 4545
Left = 1080
LinkTopic = "Form1"
ScaleHeight = 4140
ScaleWidth = 6690
Top = 1170
Width = 6810
End
Attribute VB_Name = "Form1"
Attribute VB_Creatable = False
Attribute VB_Exposed = False
Private Sub Form_Load()
phone_num$ = Command$
i = Len(phone_num$)
If i = 0 Then End
retval& = tapiRequestMakeCall(phone_num$, "", phone_num$, "")
If retval& = 0& Then End
infostr$ = "Unable to dial " + phone_num$ + " because "
Select Case retval&
Case TAPIERR_NOREQUESTRECIPIENT
infostr$ = infostr$ + "a call-manager is unavailable."
Case TAPIERR_REQUESTQUEUEFULL
infostr$ = infostr$ + "the Windows Telephony dialing queue is full."
Case TAPIERR_INVALDESTADDRESS
infostr$ = infostr$ + "the phone number is invalid."
Case Else
infostr$ = infostr$ + "of an unknown problem."
End Select
MsgBox infostr$
End Sub