After replacing the string from KSomething, where the replaced string will be stored. in buf?
I am trying to display the replaced sting but getting an error message Panic KERN-EXEC 3
here is my code
HTML Code:
case EHelp:
{
_LIT(KSomething,"blablabla<tablerow>blablabal</tablerow><tablerow>blablabla</tablerow><tablerow/>");
TBuf<200> buf;
buf=KSomething;
_LIT(KFind1,"<tablerow");
_LIT(KReplace1,"<tr");
TInt pos=buf.Find(KFind1);
while(pos>KErrNotFound)
{
buf.Replace(pos,KFind1().Length(),KReplace1);
pos=buf.Find(KFind1);
}
_LIT(KFind2,"</tablerow");
_LIT(KReplace2,"</tr");
pos=buf.Find(KFind2);
while(pos>KErrNotFound)
{
buf.Replace(pos,KFind2().Length(),KReplace2);
pos=buf.Find(KFind2);
}
_LIT(KMenuItem,"%S");
TBuf<201> buf1;
buf1.Format(KMenuItem(), buf);
CAknInformationNote* info = new (ELeave) CAknInformationNote;
info->ExecuteLD(buf1);
}
break;
please sugges me.