Read-only archive of the All About Symbian forum (2001–2013) · About this archive

Having a serious problem adding resources to a project

0 replies · 1,712 views · Started 25 December 2004

Hi. I am trying to follow the SDK help from the Nokia S60 SDK. (The one that is just released)

I am having serious problems understanding how everything goes..

I started from the helloworldbasic example, and edited the rss file by adding a dialog.


RESOURCE DIALOG r_aknexgrid_dialog_fillingorder

{

title = qtn_aknexgrid_title_dialog_fillingorder;

buttons = R_AVKON_SOFTKEYS_OK_CANCEL;

flags = EEikDialogFlagWait;

items =

{

DLG_LINE

{

type = EEikCtLabel;

id = EAknExGridDialogFillingOrderLabel1;

control = LABEL

{

};

},

DLG_LINE

{

type = EEikCtNumberEditor; //EAknCtIntegerEdwin

prompt = qtn_aknexgrid_text_dialog_fill_vert_horiz;

id = EAknExGridDialogFillingOrderPrimaryOrientation;

control = NUMBER_EDITOR //AVKON_INTEGER_EDWIN

{

min = EAknExGridDialogFillingOrderVert;

max = EAknExGridDialogFillingOrderHoriz;

};

}

};

}

This is copied word by word from the SDK help.

I had to add two #defines to the .loc file too...
EAknExGridDialogFillingOrderLabel1
and
qtn_aknexgrid_title_dialog_fillingorder

Now, when the program starts, it just gives a System error message and exits. Even without modifying any C++ code.

What did I do wrong?

Thank you very much

PS: Are there any tutorials for working with resources? The Nokia SDK keeps on explaining the very small details but forgets to talk about how everything works together.