找回密码
 注册
搜索
查看: 692|回复: 4

[讨论] 逐条获取电话簿,看写的对不对?

[复制链接]
发表于 2010-4-14 14:36:29 | 显示全部楼层 |阅读模式
for(item_index = 0; item_index < PhoneBookEntryCount; item_index++)
        {
                memset(str_number, 0x00, MAX_PB_NUMBER_LENGTH+2);
                memset(str_name, 0x00, MAX_PB_NAME_LENGTH+2);
                memset(str_content, 0x00, 100);
       
                store_index = g_phb_name_index[item_index];

                mmi_ucs2ncpy((S8*) str_name, (S8*) PhoneBook[store_index].alpha_id.name, MAX_PB_NAME_LENGTH);
                mmi_phb_convert_get_ucs2_number((S8*) str_number, store_index);

                mmi_ucs2cat((S8 *) str_content, (const S8 *) str_name);
                mmi_ucs2cat((S8 *) str_content, (const S8 *) L":");
                mmi_ucs2cat((S8 *) str_content, (const S8 *) str_number);

                xx_sendsms_xxx((char *)pReceNum, (char *) str_content, 1);
        }
发表于 2010-4-14 21:56:21 | 显示全部楼层
短信要逐条发送,不能发送
点评回复

使用道具 举报

 楼主| 发表于 2010-4-15 13:18:54 | 显示全部楼层
楼上的什么意思?我现在一个也发送不了
点评回复

使用道具 举报

发表于 2010-4-16 06:31:20 | 显示全部楼层
1.发送短信时要轮流发送,一条发送完后L4会发送相应的RSP,MMI收到该RSP后在发送sms。
具体发送SMS可以参看SMSMSG.C
点评回复

使用道具 举报

发表于 2010-4-30 14:25:37 | 显示全部楼层
貌似看不明白`
点评回复

使用道具 举报

高级模式
B Color Image Link Quote Code Smilies

本版积分规则

Archiver|手机版|小黑屋|52RD我爱研发网 ( 沪ICP备2022007804号-2 )

GMT+8, 2025-2-26 03:44 , Processed in 0.068164 second(s), 16 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表