A
Andreas Viklund via DotNetMonster.com
Hi!
I am trying to send SMS from my Compact Framework application but I am only
getting an External Exception: Error opening SMS. I am using a Pocket PC
that you also could use as a phone, and the OpenNETCF.Phone.SMS.
What could be wrong? This is my code:
Best regards
Andreas Viklund
I am trying to send SMS from my Compact Framework application but I am only
getting an External Exception: Error opening SMS. I am using a Pocket PC
that you also could use as a phone, and the OpenNETCF.Phone.SMS.
What could be wrong? This is my code:
Code:
'setup the address to use
Dim addr As New OpenNETCF.Phone.Sms.SmsAddress
addr.AddressType = OpenNETCF.Phone.AddressType.International
addr.Address = "+1234567890"
Dim smssender As New OpenNETCF.Phone.Sms.Sms
Dim messageid As Integer
'send the message
messageid = smssender.SendMessage(addr, "Hello mobile phone user")
Dim status As OpenNETCF.Phone.Sms.SmsMessageStatus
status = smssender.GetStatus(messageid)
Best regards
Andreas Viklund