AT指令集发送短信 VB程序

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

Attribute VB_Name = "TC35_API"
Public Declare Function timeGetTime Lib "winmm.dll" () As Long
Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long


Public Sub ShowMsg(ByVal s As String)
  MsgBox s, vbInformation Or vbOKOnly, "信息提示"
End Sub

Public Function ShowYesNo(s As String, Optional ByVal Title As String = "取消确认") As Boolean
   ShowYesNo = (MsgBox(s, vbYesNo Or vbInformation, Title) = vbYes)
End Function



Public Sub PreviewURL(ByVal URL As String)
    Call ShellExecute(0, "Open", URL, "", App.Path, 1)
End Sub