my code is
Code:
RESOURCE DIALOG r_gps_request_position_wait_note
    {
    flags = EEikDialogFlagNoDrag | EEikDialogFlagFillAppClientRect |

            EEikDialogFlagCbaButtons | EEikDialogFlagWait;

    buttons = R_AVKON_SOFTKEYS_CANCEL;
    items = 
        {
        DLG_LINE
            {
            type = EAknCtNote;
            id = ECidWaitNote;//get error here
            control = AVKON_NOTE
                {
                layout = EWaitLayout;
                singular_label = "Requesting position"; // its better to move this string into LOC file
                animation = 0;//R_QGN_GRAF_WAIT_BAR_ANIM;
                };
            }
        };
    }