windows mobile中的SMS发送
我为windows mobile 5.0开发了发送和接收短信的功能。首先我发送的短信是很好的工作。我使用MessageInterceptor收到短信后,收到短信后我无法发送短信,短信发送错误 表单加载windows mobile中的SMS发送,sms,windows-mobile,Sms,Windows Mobile,我为windows mobile 5.0开发了发送和接收短信的功能。首先我发送的短信是很好的工作。我使用MessageInterceptor收到短信后,收到短信后我无法发送短信,短信发送错误 表单加载 MsgInterpret.MessageReceived += new MessageInterceptorEventHandler(MsgInterpret_MessageReceived); void MsgInterpret_MessageReceived(object sender, Me
MsgInterpret.MessageReceived += new MessageInterceptorEventHandler(MsgInterpret_MessageReceived);
void MsgInterpret_MessageReceived(object sender, MessageInterceptorEventArgs e)
{
try
{
ReceiveMsg = (SmsMessage)e.Message;
sndrNo = ReceiveMsg.From.Name;
Msgbody = ReceiveMsg.Body;
label2.Text = sndrNo;
textBox1.Text = Msgbody;
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
private void Send_btn_Click(object sender, EventArgs e)
{
try
{
string mAtmId = "Hello Raja"
SmsMessage sms = new SmsMessage();
sms.Body = mAtmId;
sms.To.Add(new Recipient(Txt_PhoneNo.Text.Trim()));
sms.Send();
MessageBox.Show("Message send successfully");
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
问题是,在使用
MsgInterpret.MessageReceived
事件接收短消息之前,请正确发送短消息,然后再发送短消息。我发现了错误。您首先给我们一个提示!错误到底是什么?提示:尝试在此处添加源代码。