Hi all,
I am runing an application which used MMS . I use a SDk 2nd edition fp2.But the attachment count is always one although I send 2 objects text & audio . Is this a problem with the sdk ?

this the code I used :


iMmsMtm->LoadMessageL();
CMsvEntrySelection* iobjects = iMmsMtm->GetAttachmentsL();
CleanupStack::PushL(iobjects);
TInt x=iobjects->Count();
if(iobjects->Count() > 0)
{
for(TInt j=0;j<iobjects->Count();j++)
{
TFileName aFilePath;
TBool Audioflag =EFalse;
TBool Textflag =EFalse;
_LIT8 (KMmsAudio,"audio/amr") ;//define
_LIT8 (KMmsText,"text/plain");//define
TMsvId Id =iobjects->At(j);
TPtrC8 y=iMmsMtm->AttachmentTypeL(iobjects->At(j));
if( iMmsMtm->AttachmentTypeL(Id)==KMmsText)
{
Textflag=ETrue;
iMmsMtm->GetAttachmentPathL(iobjects->At(j), aFilePath);
}
else if( iMmsMtm->AttachmentTypeL(Id)==KMmsAudio)
{
Audioflag=ETrue;
CleanupStack::PopAndDestroy(iobjects);
// processing with aFilePath x
} // end of for
} // end of if
return true;

Plz help me ;
thanks in advance.
Bye