请问....

calligraphy 2002-06-27 12:35:40
电话拨号程序怎么写
...全文
34 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
thinkeasy 2002-06-27
  • 打赏
  • 举报
回复
使用MODEM的AT命令
你可以参考MSCOMM控件
calligrapher 2002-06-27
  • 打赏
  • 举报
回复
跟我联系calligrapher@sina.com
calligrapher 2002-06-27
  • 打赏
  • 举报
回复
跟我联系calligrapher@sina.com
xxlroad 2002-06-27
  • 打赏
  • 举报
回复

Private Sub mnuDial_Click()
On Local Error Resume Next
Static Num As String

Num = "1-206-936-6735" ' This is the MSDN phone number

' Get a number from the user.
Num = InputBox$("Enter Phone Number:", "Dial Number", Num)
If Num = "" Then Exit Sub

' Open the port if it isn't already open.
If Not MSComm1.PortOpen Then
mnuOpen_Click
If Err Then Exit Sub
End If

' Enable hang up button and menu item
mnuHangUp.Enabled = True
tbrToolBar.Buttons("HangUpPhone").Enabled = True

' Dial the number.
MSComm1.Output = "ATDT" & Num & vbCrLf
' Start the port timer
StartTiming
End Sub

7,763

社区成员

发帖
与我相关
我的任务
社区描述
VB 基础类
社区管理员
  • VB基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧