Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Hi all,

Can anybody help on how to retrieve the SMS from the inbox. I tried with ISMSSTORAGE_ReadMsg but when it executes this API the simulator is crashing. Here is the code snippet:

i = ISHELL_CreateInstance(pMe->a.m_pIShell, AEECLSID_SMSSTORAGE, (void **)&pMe->pSMSStorage);
i = ISHELL_CreateInstance(pMe->a.m_pIShell, AEECLSID_SMS, (void **)&pMe->pSMS);
i = ISHELL_CreateInstance(pMe->a.m_pIShell, AEECLSID_SMSMSG, (void **)&pMe->pSMSMsg);

CALLBACK_Init(&pMe->cb, DisplayMsg, pMe);
ISMSSTORAGE_ReadMsg(pMe->pSMSStorage, AEESMS_NV_CDMA, 1, &(pMe->cb), &pMe->pSMSMsg, &pMe->dwResult);

Please help me in this regard.

Thanks,
Sreehari

Did you check if all those createinstance succeed or not before using them?

Did you check if all those createinstance succeed or not before using them?

Hi Ruben,
Thanks for ur reply...
In my app I got return value as success for all the create istances. Only ISMSSTORAGE_ReadMsg() is crashing. Looking forward for ur help.
Thanks,
Sreehari

Hi Ruben,
Thanks for ur reply...
In my app I got return value as success for all the create istances. Only ISMSSTORAGE_ReadMsg() is crashing. Looking forward for ur help.
Thanks,
Sreehari