WAP之家:为您提供最全最新的WAP技术,CP.SP.3G等行业资讯。 WAP之家交流论坛全新开放 点击进入>>
WAP资讯 | 3G动态 | SP动态 | 运营商动态 | 内容商动态 | 制造商动态 | 论坛讨论>> 每次自动访问
WAP技术 | WAP源码 | 手机编程 | 手机源码 | 无线技术 | J2ME技术 | 手机软件 添加到收藏夹
IVR技术 | SP资料 | SMS MMS技术 | 商业方案 | IVR下载 | 书籍教程 | 工具软件 语言:繁體中文

WAP之家技术文章SMS MMSSMS技术编写SMS程序入门

编写SMS程序入门
作者:佚名  来源:本站整理  发布时间:2005-7-13 10:41:26

introduction to application programming with sms
编写sms程序入门

microsoft corporation
october 2002
applies t
pocket pc 2002 phone edition
microsoft® embedded visual tools
版权声明:本文的著作权属英文原文作者,允许非商业性转载请注明原文出处、翻译者并保持该文的完整性。谢绝商业性转载,如有需要请自行和原文作者及翻译者联系。
summary: learn how to send sms messages from your embedded visual basic applications. take advantage of pocket pc 2002 phone edition's robust support for sms (short message service) when you build your applications.
概要:学习如何使用你的embedded visual basic应用程序发送sms消息。当你创建程序时,需要得到pocket pc 2002 phone edition 对sms(短消息服务)的充分支持。
download the introapp.exe from the msdn code center.
contents

sms and pocket pc phone edition
sms-enabled applications
sending sms sample
code walkthrough
conclusion
sms and pocket pc phone edition
sms和pocket pc phone版本

short message service is a standard for sending short alpha-numeric messages (max 160 characters) between mobile phones in global system for mobile communications networks (gsm). it works much like paging, but with text, and most phones today have support for sms.
short message service是通过mobile communications networks (gsm)的全球系统在移动电话间发送short alpha-numeric messages(最多160字符)的标准。它像寻呼机一样工作,只是用于文本格式,现在的大多数电话都支持sms。
a key aspect of sms is that messages are sent through the mobile network operator's network instantly, without the need to manually connect to an internet service provider—sms messages are instantly delivered while e-mails need to be retrieved from a mail server by the receiver. also, if the receiver is not online—if the phone is turned off—the sms message is stored at the operator and forwarded when the phone is turned back on.
sms的一个关键特点是,通过无线网络服务器的网络立即发送,不需要手动连接到internet service provider—sms消息是立即发送,而e-mails需要通过接收器从邮件服务器上接收。同样,如果接收器没有在线—如果电话关闭—sms消息被储存在服务器中,当电话打开时再转发。
on pocket pc 2002 phone edition devices, you can manage sms messages much in the same way that you manage e-mail messages. the sms messaging component is integrated with the standard inbox application, allowing you to send and receive messages in the same way you send and receive e-mails. you can even forward and reply to e-mails as sms messages, and vice versa.
在pocket pc 2002 的电话版设备上,你可以和管理e-mail消息一样来管理sms消息。sms消息组件是一个完整的标准收件箱应用程序,允许你像收发电子邮件一样,收发sms消息。你也可以转发和回复sms消息,像电子邮件一样。
sms-enabled applications
sms-enabled 应用程序

many business scenarios involve notifications of some sort, and sms is a great way to implement notifications for a variety of business events. it could be a salesman that notifies a service engineer of a customer in need of service, a service engineer notifying an executive of an important business event at the customer, or an executive informing all staff related to the customer about new customer handling routines.
许多商业机构忙碌于对一些通知的选择,sms是一条极好的实现适应变化多样的商业事件消息通知的途径。它可以让一个销售人员向售后服务工程师转达消费者的需求,一个服务工程师向经理发送一个重要的商务事件,或者一个经理向全体员工发送新的消费者操作办法。
another interesting use of sms is to enable mobile commerce (m-commerce), as sms is often used for handling payment transactions. to get you started, we will show you how to send sms messages from your pocket pc 2002 phone edition device in the following example.
sms另一个有趣的应用是能够进行移动商务(m-commerce),sms经常被用来办理付款事物。我们将通过下面的例子,演示如何从你的pocket pc 2002 phone edition设备中发送sms消息。
sending sms sample
发送sms示例

a simple form using microsoft® embedded visual basic®:
这个例子使用microsoft® embedded visual basic® 编写:

figure 1. sms sample application
in this form, you can enter an international mobile phone number and a text message. when you hit the send button, the message is sent—as simple as that!
在这个窗体中,你可以输入一个世界范围内的移动电话号码和一条文本消息。当你点击发送按忸,这条消息就被发送出去了—就这么简单。
code walkthrough
代码示例

let's look at the core of the code for sending sms messages. first of all, you need to declare a number of microsoft windows® apis:
让我们来看发送sms消息代码的核心部分。首先,你需要声明一系列的microsoft windows® apis:
· one for opening the sms messaging component
· one for sending sms messages
· and one for closing the sms messaging component:
· 一个函数是打开sms消息组件
· 一个函数是发送sms消息
· 另一个函数是关闭sms消息组件 public declare function smsopen lib "sms" (byval ptsmessageprotocol
· as string, byval dwmessagemodes as long, byref psmshhandle as
·

[1] [2]  下一页

[] [返回上一页] [打 印]
文章评论

用户名: 查看更多评论

分 值:100分 85分 70分 55分 40分 25分 10分 0分

内 容:

         (注“”为必填内容。) 验证码: 验证码,看不清楚?请点击刷新验证码