简体   繁体   English

vb.net如何通过gsm从桌面应用程序向手机发送短信

[英]vb.net how to send sms via gsm to mobile phone from desktop aplication

having difficulties in sending sms via gsm to mobile phone. 无法通过gsm向手机发送短信。 it giving me this error. 它给了我这个错误。 CANNOT CONNECT TO PORT COM11. 无法连接到端口COM11。 THE REQUESTED RESOURCE IS IN USE. 所请求的资源正在使用中。 Using windows 7. below is my code 使用Windows7。以下是我的代码

            Dim comm = New GsmCommMain("COM11", 460800, 6000)
            TextBox2.Text = "Balance" + "" + Txtbalance.Text
            Dim pdu = New SmsSubmitPdu(TextBox2.Text, Txtcellnumber.Text)
            comm.Open()
            comm.SendMessage(pdu)
            comm.Close()

您是否以管理员身份运行程序或Visual Studio?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM