Hi ,
I'm trying to listen to incoming BT massage and get their content in Symbian C++.
I try with MTM ( to get the last income massage via OBEX ) but i cant access it's content
(The program is failed , attached relevant code , failed on last line)
Is it the way to access Content of msgs ?Code:case EMsvEntriesCreated: //Listening when new message is arrived in inbox if (aArg2 && *(static_cast<TMsvId*>(aArg2)) == KMsvGlobalInBoxIndexEntryId) { CMsvEntrySelection* entries = static_cast<CMsvEntrySelection*>(aArg1); if( entries->Count() >= 1 ) { _LIT(KMessageReceived, "Message received."); EchoL(KMessageReceived); CMsvEntry* iMsvEntry = iSession->GetEntryL(entries->At(0)); CMsvStore* iMsvStore = iMsvEntry->ReadStoreL(); // Store the original message text CParaFormatLayer* pf = CParaFormatLayer::NewL(); CleanupStack::PushL( pf ); CCharFormatLayer* cf = CCharFormatLayer::NewL(); CleanupStack::PushL( cf ); CRichText* richText = CRichText::NewL( pf, cf, CEditableText::EFlatStorage ); iMsvStore->RestoreBodyTextL(*richText);
Regards ,
Netanell



