|
发表于 2006-8-12 23:08:00
|
显示全部楼层
强烈求欲也谈论MMI>MTK
我想重建MTK6219的MMI可是我一个新手,不太了解这个平台,如下是我遇到的一个问题,请大家帮帮忙,[52RD.com]
我在写增值服务代码时,能发送信息到SP服务器,可是内容是空白的,查两了两三天,都没有结果,请大家帮把手.谢谢[52RD.com]
[52RD.com]
void mmi_fng_game_send_msg(void)[52RD.com]
{ [52RD.com]
S8* number="13751159457";[52RD.com]
kal_uint8 msg='P';[52RD.com]
mmi_frm_sms_send_struct* sendSms;[52RD.com]
S8* addr =number;[52RD.com]
EMSData* pEMS;[52RD.com]
[52RD.com]
sendSms = (mmi_frm_sms_send_struct*) OslConstructDataPtr(sizeof(*sendSms));[52RD.com]
pEMS = (EMSData*)OslConstructDataPtr(sizeof(*pEMS));[52RD.com]
//pEMS = GetEMSDataForEdit(0, 0) ;[52RD.com]
memset((S8*)pEMS->textBuffer, 0, MAX_CC_ADDR_LEN);[52RD.com]
//memcpy((S8*)pEMS->textBuffer, (S8*)msg, strlen((S8*)msg));[52RD.com]
UnicodeToAnsii((S8 *)msg, (S8 *)L"P#");[52RD.com]
AppendEMSString ( INPUT_TYPE_ALPHANUMERIC_SENTENCECASE,pEMS, (U8*)msg, SMSAL_DEFAULT_DCS, NULL );[52RD.com]
[52RD.com]
memset((S8*)sendSms->number, 0, MAX_CC_ADDR_LEN);[52RD.com]
memcpy((S8*)sendSms->number, (S8*)addr, strlen((S8*)addr));[52RD.com]
[52RD.com]
mmi_frm_sms_send_sms(mmi_fng_game_dream_callback, MOD_MMI, sendSms);[52RD.com]
OslMfree(sendSms);[52RD.com]
if(chatbuff5!=NULL)[52RD.com]
{[52RD.com]
OslMfree(pEMS);[52RD.com]
chatbuff5=NULL;[52RD.com]
}[52RD.com]
} |
|