Hi,
I am using CAknMessageQueryDialog for displaying data which i am collecting from a socket which i have connected to a midlet .
It is working fine on my emulator but not on my Target which is E61 . Now i have gone through this link http://discussion.forum.nokia.com/fo...ight=rcomp.exe
and done the reqiured changes and it is working on the emulator but since i don,t have any ondevice debugging tools i am not able to find out exactly where is the bug this is my code for the CAknMessageQueryDialog
void CLogAppView::ShowMessage(/*const TDesC& aMessage*/)
{
TBuf<50>aMessage;
aMessage.Append(KShow);
//iEikonEnv->InfoWinL(KBytes,aMessage);
HBufC* aTitle = iEikonEnv->AllocReadResourceLC(R_COMMAND1_TEXT);
CAknMessageQueryDialog* dlg = new (ELeave)CAknMessageQueryDialog();
dlg->PrepareLC(R_MESSAGE_QUERY);
dlg->SetMessageTextL(aMessage);
dlg->QueryHeading()->SetTextL(aTitle->Des());
dlg->RunLD();
CleanupStack::PopAndDestroy(aTitle);
}
This is the resource
RESOURCE DIALOG r_message_query
{
flags = EGeneralQueryFlags|EEikDialogFlagNoBorder|EEikDialogFlagNoShadow;
buttons = R_AVKON_SOFTKEYS_OK_EMPTY;
items =
{
DLG_LINE
{
type = EAknCtPopupHeadingPane;
id = EAknMessageQueryHeaderId;
itemflags = EEikDlgItemNonFocusing;
control = AVKON_HEADING
{
headinglayout = R_AVKON_LIST_HEADING_PANE_POPUPS;
};
},
DLG_LINE
{
type = EAknCtMessageQuery;
id = EAknMessageQueryContentId;
control = AVKON_MESSAGE_QUERY
{
};
}
};
}
now i am getting very frustrated because of this it is working fine on the emulator and not at all on the Target device now somebody please advice me what should i do to come out of this issue
Thanks
symbians60



