Hey all,
This has me stumped, any info will be greatly appreciated. I've been trying to create a Dialog Progress Info box. Here's the relevant code, which was drawn from the example code:
RESOURCE DIALOG r_truvideoplayer_progressbar
{
flags=EAknProgressNoteFlags;
buttons=EAknSoftkeyCancel;
// title=truvideoplayer_progressbar_title;
items=
{
DLG_LINE
{
type=EAknCtNote;
id=ETruvideoPlayerProgressBarID;
control=AVKON_NOTE
{
layout = EProgressLayout;
singular_label = truvideoplayer_progressbar_connect_singular;
plural_label = truvideoplayer_progressbar_connect_plural;
};
}
};
}
iNetDialog = new (ELeave) TVPNetDialog(REINTERPRET_CAST(CEikDialog**, &iNetDialog));
iNetDialog->PrepareLC(R_TRUVIDEOPLAYER_PROGRESSBAR);
TVPNetdialog inherits from TVNetDialog which inherits from CAknProgressDialog. I did this for a variety of reasons, but suffice to say that the child constructors at least just invoke the parent constructors, arguments and all. Nothing else is called. Also I do not override PrepareLC, so CAknProgressDialog::PrepareLC() should be the function that gets invoked.
When the code is run, the program exits when PrepareLC() is called. The code runs fine if I comment it out (and of course disable any other actions on the iNetDialog object!).
Thanks a lot!
d.



