Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

在To:字段中直接指明名称而非号码时CSendUi是无法工作的

From Wiki
Jump to: navigation, search
Article Metadata

兼容于
文章
huwell 在 04 Dec 2007 创建
最后由 hamishwillee 在 14 Jun 2013 编辑
  • 详细描述

当使用CSendUi::CreateAndSendMessageL()来生成并发送一个SMS时,如果在To:字段中输入电话号码,则运行正常。但如果使用一个名称替代号码,则会返回错误信息“Invalid Recipient Information”,即使该名称在名片夹中对应一个有效的电话号码。


  • 解决方案

SendUi并不提供自动查找电话号码或其它联系人信息的功能。如果在启动SMS编辑框时已经知道了接收者的姓名,则可以通过使用Contacts API在名片夹中搜索对应的手机号码,然后再使用CSendUi发送短信。

This page was last modified on 14 June 2013, at 07:19.
30 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×